Meson: Use cc.has_type() instead of our own snippet

https://bugzilla.gnome.org/show_bug.cgi?id=740791
This commit is contained in:
Xavier Claessens 2018-04-20 12:07:59 -04:00
parent 5ccd9449fb
commit 30c2ea4c53

View File

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