mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 15:33:39 +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>
|
||||
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
|
||||
|
Reference in New Issue
Block a user