util/u_process: fix Windows build
Reported by Brian Paul.
Fixes: f8f1413070
("util/u_process: add util_get_process_exec_path")
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4303>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4303>
This commit is contained in:
parent
6a4fadce12
commit
bd22a0f710
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue