mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-01 13:23:07 +02:00
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:
parent
7bb0261407
commit
f67e8636da
@ -887,7 +887,7 @@ if host_system == 'qnx'
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# Check for futex(2)
|
# Check for futex(2)
|
||||||
if cc.links('''#include <linux/futex.h>
|
if cc.compiles('''#include <linux/futex.h>
|
||||||
#include <sys/syscall.h>
|
#include <sys/syscall.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
int main (int argc, char ** argv) {
|
int main (int argc, char ** argv) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user