mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 23:46:17 +01:00
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:
parent
1461c29301
commit
81d729dc53
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user