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:
Pierre-Eric Pelloux-Prayer 2020-03-24 16:12:26 +01:00 committed by Marge Bot
parent 6a4fadce12
commit bd22a0f710
1 changed files with 2 additions and 1 deletions

View File

@ -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)