diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2018-07-10 15:00:13 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2018-08-01 12:47:16 -0700 |
commit | 17f49950da91137366910183f616d15b8bbf580c (patch) | |
tree | 4d3c1dbcf8c588a24adccba262d2d6dd4e9b5130 /src/util | |
parent | cb6b241c301d5352a5bcaab52bbfaf89e700b2b2 (diff) |
util: move process.[ch] to u_process.[ch]
On windows process.h is a system provided header, and it's required in
include/c11/threads_win32.h. This header interferes with searching for
that header, and results in windows build warnings with scons, but
errors in meson which doesn't allow implicit function declarations. Just
rename process to u_process, which follows the style of utils anyway.
Fixes: 2e1e6511f76370870b5cde10caa9ca3b6d0dc65f
("util: extract get_process_name from xmlconfig.c")
Signed-off-by: Dylan Baker <dylan.c.baker@intel.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/Makefile.sources | 4 | ||||
-rw-r--r-- | src/util/meson.build | 4 | ||||
-rw-r--r-- | src/util/u_process.c (renamed from src/util/process.c) | 2 | ||||
-rw-r--r-- | src/util/u_process.h (renamed from src/util/process.h) | 0 | ||||
-rw-r--r-- | src/util/u_queue.c | 2 | ||||
-rw-r--r-- | src/util/xmlconfig.c | 2 |
6 files changed, 7 insertions, 7 deletions
diff --git a/src/util/Makefile.sources b/src/util/Makefile.sources index fe34fc26690..531fd833c7f 100644 --- a/src/util/Makefile.sources +++ b/src/util/Makefile.sources @@ -24,8 +24,8 @@ MESA_UTIL_FILES := \ mesa-sha1.h \ os_time.c \ os_time.h \ - process.c \ - process.h \ + u_process.c \ + u_process.h \ sha1/sha1.c \ sha1/sha1.h \ ralloc.c \ diff --git a/src/util/meson.build b/src/util/meson.build index 8c91be8539c..6386d945a22 100644 --- a/src/util/meson.build +++ b/src/util/meson.build @@ -48,8 +48,8 @@ files_mesa_util = files( 'mesa-sha1.h', 'os_time.c', 'os_time.h', - 'process.c', - 'process.h', + 'u_process.c', + 'u_process.h', 'sha1/sha1.c', 'sha1/sha1.h', 'ralloc.c', diff --git a/src/util/process.c b/src/util/u_process.c index 6e6376986f3..5bf3f56db4e 100644 --- a/src/util/process.c +++ b/src/util/u_process.c @@ -25,7 +25,7 @@ * of the Software. */ -#include "process.h" +#include "u_process.h" #include <string.h> #include <errno.h> #include <stdlib.h> diff --git a/src/util/process.h b/src/util/u_process.h index 77f7cb1cbef..77f7cb1cbef 100644 --- a/src/util/process.h +++ b/src/util/u_process.h diff --git a/src/util/u_queue.c b/src/util/u_queue.c index be95d9eec3f..4ce1af518b3 100644 --- a/src/util/u_queue.c +++ b/src/util/u_queue.c @@ -31,7 +31,7 @@ #include "util/os_time.h" #include "util/u_string.h" #include "util/u_thread.h" -#include "process.h" +#include "u_process.h" static void util_queue_killall_and_wait(struct util_queue *queue); diff --git a/src/util/xmlconfig.c b/src/util/xmlconfig.c index d3847911baa..ba657294c1c 100644 --- a/src/util/xmlconfig.c +++ b/src/util/xmlconfig.c @@ -37,7 +37,7 @@ #include <unistd.h> #include <errno.h> #include "xmlconfig.h" -#include "process.h" +#include "u_process.h" /** \brief Find an option in an option cache with the name as key */ |