Module: vkd3d
Branch: master
Commit: cca03d1c0e899fafd1a9df8165456e7b29e319d4
URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/cca03d1c0e899fafd1a9df8165456…
Author: Florian Weimer <fweimer(a)redhat.com>
Date: Mon Dec 18 11:07:37 2023 +0100
configure: Use AC_CHECK_FUNCS to define HAVE_GETTID.
VKD3D_CHECK_FUNC does not use a fake prototype (char gettid(void);)
and does not include <unistd.h>. It always fails with Clang 16 and
GCC 14 and other compilers which do not support implicit function
declarations.
---
configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 84209d31..c7e6994a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -157,7 +157,7 @@ VKD3D_CHECK_FUNC([HAVE_SYNC_ADD_AND_FETCH], [__sync_add_and_fetch], [__sync_add_
VKD3D_CHECK_FUNC([HAVE_SYNC_SUB_AND_FETCH], [__sync_sub_and_fetch], [__sync_sub_and_fetch((int *)0, 0)])
VKD3D_CHECK_FUNC([HAVE_SYNC_BOOL_COMPARE_AND_SWAP], [__sync_bool_compare_and_swap], [__sync_bool_compare_and_swap((int *)0, 0, 0)])
VKD3D_CHECK_FUNC([HAVE_ATOMIC_EXCHANGE_N], [__atomic_exchange_n], [__atomic_exchange_n((int *)0, 0, 0)])
-VKD3D_CHECK_FUNC([HAVE_GETTID], [gettid], [gettid()])
+AC_CHECK_FUNCS([gettid])
dnl Makefiles
case $host_os in