mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Meson: Use cc.has_type() instead of our own snippet
https://bugzilla.gnome.org/show_bug.cgi?id=740791
This commit is contained in:
parent
5ccd9449fb
commit
30c2ea4c53
@ -137,10 +137,8 @@ if host_system != 'windows'
|
||||
glib_conf.set('HAVE_RES_NQUERY', 1)
|
||||
endif
|
||||
|
||||
if cc.compiles('''#include <netinet/in.h>
|
||||
struct ip_mreqn foo;''',
|
||||
name : 'struct ip_mreqn')
|
||||
glib_conf.set('HAVE_IP_MREQN', '/**/')
|
||||
if cc.has_type('struct ip_mreqn', prefix : '#include <netinet/in.h>')
|
||||
glib_conf.set('HAVE_IP_MREQN', 1)
|
||||
endif
|
||||
|
||||
if cc.compiles('''#include <sys/ioctl.h>
|
||||
|
Loading…
Reference in New Issue
Block a user