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.
This commit is contained in:
Samuel Thibault 2023-05-07 23:45:00 +02:00 committed by Philip Withnall
parent 1461c29301
commit 81d729dc53

View File

@ -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