diff options
author | Pierre-Eric Pelloux-Prayer <[email protected]> | 2020-03-24 16:12:26 +0100 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-24 15:58:34 +0000 |
commit | bd22a0f710ca48a49948a6463228c0d01d2fa74f (patch) | |
tree | b08d62c1ea097d0894404610d95243d20a900212 /src/util | |
parent | 6a4fadce129efa5cc13bffc4f0c207ff23830792 (diff) |
util/u_process: fix Windows build
Reported by Brian Paul.
Fixes: f8f1413070a ("util/u_process: add util_get_process_exec_path")
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Daniel Stone <[email protected]>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4303>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4303>
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/u_process.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/u_process.c b/src/util/u_process.c index 686e4624429..0454760f471 100644 --- a/src/util/u_process.c +++ b/src/util/u_process.c @@ -31,12 +31,13 @@ #include <string.h> #include <errno.h> #include <stdlib.h> -#include <unistd.h> #undef GET_PROGRAM_NAME #if DETECT_OS_WINDOWS #include <windows.h> +#else +#include <unistd.h> #endif #if defined(__linux__) && defined(HAVE_PROGRAM_INVOCATION_NAME) |