From 81d729dc5377bcfb664a720191a716e7e9f064d7 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 7 May 2023 23:45:00 +0200 Subject: 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. --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1