summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2023-05-07 23:45:00 +0200
committerPhilip Withnall <pwithnall@endlessos.org>2023-05-09 13:31:28 +0100
commit81d729dc5377bcfb664a720191a716e7e9f064d7 (patch)
treea7b46fc743d81c9b91a2ac37d0feb634a3eec17f
parent1461c29301e95042268abca0c6e315d27500b948 (diff)
downloadglib-81d729dc5377bcfb664a720191a716e7e9f064d7.tar.gz
Check for linux/netlink.h buildability
When cross-building with a non-Linux target, linux/netlink.h will not actually be buildable, even if distributions typically put it in /usr/include and thus exposed to the cross-compiler.
-rw-r--r--meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index f275a3475..1d75a8be5 100644
--- a/meson.build
+++ b/meson.build
@@ -412,7 +412,7 @@ if cc.check_header('malloc.h')
glib_conf_prefix = glib_conf_prefix + '#define HAVE_MALLOC_H 1\n'
endif
-if cc.has_header('linux/netlink.h')
+if cc.check_header('linux/netlink.h')
glib_conf.set('HAVE_NETLINK', 1)
endif