git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rwrap: Fix ns_name_compress detection.
[sfrench/samba-autobuild/.git]
/
lib
/
resolv_wrapper
/
wscript
diff --git
a/lib/resolv_wrapper/wscript
b/lib/resolv_wrapper/wscript
index 797e90ad1d4507da02778c9cda68f6e03276fa09..7d9e21ab17ad536f026eb805cb594e34a3813fed 100644
(file)
--- 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('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)
# Create full path to resolv_wrapper
srcdir = os.path.realpath(conf.srcdir)