diff options
-rw-r--r-- | lib/resolv_wrapper/wscript | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/resolv_wrapper/wscript b/lib/resolv_wrapper/wscript index 797e90ad1d..7d9e21ab17 100644 --- a/lib/resolv_wrapper/wscript +++ b/lib/resolv_wrapper/wscript @@ -74,7 +74,9 @@ def configure(conf): conf.CHECK_FUNCS_IN('res_search __res_search', 'resolv', checklibc=True) conf.CHECK_FUNCS_IN('res_nsearch __res_nsearch', 'resolv', checklibc=True) - conf.CHECK_FUNCS_IN('ns_name_compress', 'resolv', checklibc=True) + conf.CHECK_DECLS('ns_name_compress', headers='sys/types.h arpa/nameser.h') + if (conf.CONFIG_SET("HAVE_DECL_NS_NAME_COMPRESS")): + conf.DEFINE("HAVE_NS_NAME_COMPRESS", 1) # Create full path to resolv_wrapper srcdir = os.path.realpath(conf.srcdir) |