mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-08 10:14:04 +02: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:
@@ -94,7 +94,8 @@ if host_system != 'windows'
|
|||||||
#include <resolv.h>
|
#include <resolv.h>
|
||||||
int main (int argc, char ** argv) {
|
int main (int argc, char ** argv) {
|
||||||
struct __res_state res;
|
struct __res_state res;
|
||||||
return res_nclose(&res);
|
res_nclose(&res);
|
||||||
|
return 0;
|
||||||
}''', args : network_args, name : 'res_nclose()')
|
}''', args : network_args, name : 'res_nclose()')
|
||||||
glib_conf.set('HAVE_RES_NCLOSE', 1)
|
glib_conf.set('HAVE_RES_NCLOSE', 1)
|
||||||
endif
|
endif
|
||||||
@@ -106,7 +107,8 @@ if host_system != 'windows'
|
|||||||
#include <resolv.h>
|
#include <resolv.h>
|
||||||
int main (int argc, char ** argv) {
|
int main (int argc, char ** argv) {
|
||||||
struct __res_state res;
|
struct __res_state res;
|
||||||
return res_ndestroy(&res);
|
res_ndestroy(&res);
|
||||||
|
return 0;
|
||||||
}''', args : network_args, name : 'res_ndestroy()')
|
}''', args : network_args, name : 'res_ndestroy()')
|
||||||
glib_conf.set('HAVE_RES_NDESTROY', 1)
|
glib_conf.set('HAVE_RES_NDESTROY', 1)
|
||||||
endif
|
endif
|
||||||
|
Reference in New Issue
Block a user