mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
build: Fix Meson checks for res_nclose() and res_ndestroy()
The checks wouldn’t compile, and hence would always fail. Signed-off-by: Philip Withnall <withnall@endlessm.com> https://bugzilla.gnome.org/show_bug.cgi?id=793291
This commit is contained in:
parent
04b3ce7255
commit
0cd5127494
@ -94,7 +94,8 @@ if host_system != 'windows'
|
||||
#include <resolv.h>
|
||||
int main (int argc, char ** argv) {
|
||||
struct __res_state res;
|
||||
return res_nclose(&res);
|
||||
res_nclose(&res);
|
||||
return 0;
|
||||
}''', args : network_args, name : 'res_nclose()')
|
||||
glib_conf.set('HAVE_RES_NCLOSE', 1)
|
||||
endif
|
||||
@ -106,7 +107,8 @@ if host_system != 'windows'
|
||||
#include <resolv.h>
|
||||
int main (int argc, char ** argv) {
|
||||
struct __res_state res;
|
||||
return res_ndestroy(&res);
|
||||
res_ndestroy(&res);
|
||||
return 0;
|
||||
}''', args : network_args, name : 'res_ndestroy()')
|
||||
glib_conf.set('HAVE_RES_NDESTROY', 1)
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user