glib/gthread-posix: Use cc.compiles() instead of cc.links() for checking for __NR_futex

`cc.compiles()` is minimally faster.

We only want to check here whether `__NR_futex` is defined and don't
want to check anything at link-time.
This commit is contained in:
Sebastian Dröge 2022-12-13 15:05:06 +02:00
parent 7bb0261407
commit f67e8636da

View File

@ -887,7 +887,7 @@ if host_system == 'qnx'
endif
# Check for futex(2)
if cc.links('''#include <linux/futex.h>
if cc.compiles('''#include <linux/futex.h>
#include <sys/syscall.h>
#include <unistd.h>
int main (int argc, char ** argv) {