diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2022-12-13 15:05:06 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2022-12-13 15:06:21 +0200 |
commit | f67e8636dad3038b584887bd1edf4515fbd7ac4a (patch) | |
tree | d80418ee722e2dbc455bc938b4ba2f56e18b5fdf | |
parent | 7bb0261407f34e2e60859dda86f1e0ce5b01ec10 (diff) | |
download | glib-f67e8636dad3038b584887bd1edf4515fbd7ac4a.tar.gz |
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.
-rw-r--r-- | meson.build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 2305b3a08..c763857ea 100644 --- a/meson.build +++ b/meson.build @@ -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) { |