summaryrefslogtreecommitdiff
path: root/lib/replace/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'lib/replace/wscript')
-rw-r--r--lib/replace/wscript10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript
index be8ecc2c00..a9410c9ff7 100644
--- a/lib/replace/wscript
+++ b/lib/replace/wscript
@@ -103,7 +103,7 @@ def configure(conf):
conf.CHECK_FUNCS('strtouq strtoll __strtoll strtoq memmem printf memset memcpy')
conf.CHECK_FUNCS('connect gethostbyname if_nametoindex socketpair')
conf.CHECK_FUNCS('inet_ntoa inet_ntop dirfd getdirentries getdents syslog')
- conf.CHECK_FUNCS('timegm getifaddrs freeifaddrs')
+ conf.CHECK_FUNCS('timegm getifaddrs freeifaddrs inet_aton inet_atop')
conf.CHECK_FUNCS_IN('dlopen dlsym dlerror dlclose', 'dl')
conf.CHECK_FUNCS_IN('poptGetContext', 'popt')
@@ -185,3 +185,11 @@ def build(bld):
bld.SAMBA_BINARY('replace_testsuite',
TEST_SOURCES,
'replace')
+
+ NET_SOURCES = []
+ if not 'HAVE_INET_NTOA' in bld.env: NET_SOURCES.append('inet_ntoa.c')
+ if not 'HAVE_INET_ATON' in bld.env: NET_SOURCES.append('inet_aton.c')
+ if not 'HAVE_INET_ATOP' in bld.env: NET_SOURCES.append('inet_atop.c')
+ if not 'HAVE_SOCKETPAIR' in bld.env: NET_SOURCES.append('socketpair.c')
+
+ bld.SAMBA_SUBSYSTEM('LIBREPLACE_NETWORK', NET_SOURCES)