Signed-off-by: Henri Verbeet hverbeet@codeweavers.com --- configure.ac | 2 ++ libs/vkd3d/utils.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac index 819e768..355aaab 100644 --- a/configure.ac +++ b/configure.ac @@ -78,6 +78,8 @@ AC_CHECK_DECL([SpvCapabilityDemoteToHelperInvocationEXT],, [AC_MSG_ERROR([SPIR-V # include "vulkan/spirv.h" #endif])
+AC_CHECK_DECLS([program_invocation_name],,,[#include <errno.h>]) + dnl Check for libraries m4_ifdef([PKG_PROG_PKG_CONFIG], [PKG_PROG_PKG_CONFIG], [m4_fatal([pkg-config autoconf macros not found.])])
diff --git a/libs/vkd3d/utils.c b/libs/vkd3d/utils.c index 1fc0e9d..1cb8599 100644 --- a/libs/vkd3d/utils.c +++ b/libs/vkd3d/utils.c @@ -828,7 +828,7 @@ HRESULT vkd3d_load_vk_device_procs(struct vkd3d_vk_device_procs *procs, return S_OK; }
-#ifdef _GNU_SOURCE +#ifdef HAVE_DECL_PROGRAM_INVOCATION_NAME
bool vkd3d_get_program_name(char program_name[PATH_MAX]) { @@ -870,7 +870,7 @@ bool vkd3d_get_program_name(char program_name[PATH_MAX]) return false; }
-#endif /* _GNU_SOURCE */ +#endif /* HAVE_DECL_PROGRAM_INVOCATION_NAME */
static struct vkd3d_private_data *vkd3d_private_store_get_private_data( const struct vkd3d_private_store *store, const GUID *tag)