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:
Philip Withnall 2018-02-09 19:01:45 +00:00
parent 04b3ce7255
commit 0cd5127494

View File

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