mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-03 16:03:40 +02:00
struct ip_mreq_source definition is broken on Android NDK <= r16
This fix the build on Android r16 and older, see: https://issuetracker.google.com/issues/36987220 https://bugzilla.gnome.org/show_bug.cgi?id=740791
This commit is contained in:
@@ -152,6 +152,16 @@ if host_system != 'windows'
|
||||
glib_conf.set('HAVE_SIOCGIFADDR', '/**/')
|
||||
endif
|
||||
|
||||
if not cc.compiles('''#include <netinet/in.h>
|
||||
int main(int argc, char ** argv) {
|
||||
struct ip_mreq_source mc_req_src;
|
||||
mc_req_src.imr_interface.s_addr = 0;
|
||||
return 0;
|
||||
}''',
|
||||
name : 'ip_mreq_source.imr_interface has s_addr member')
|
||||
glib_conf.set('BROKEN_IP_MREQ_SOURCE_STRUCT', 1)
|
||||
endif
|
||||
|
||||
endif
|
||||
|
||||
network_args_string = ''
|
||||
|
Reference in New Issue
Block a user