Reported by Brian Paul.
Fixes: f8f1413070a ("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>
#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)