From: Florian Weimer fweimer@redhat.com
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 84209d31a..c7e6994ab 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