diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-02-23 16:48:23 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-04-06 20:26:37 +1000 |
commit | eab4d4598ef08c89f36180f8b9027444867e32bc (patch) | |
tree | 36c833ca2c0ec957e7126c119d95cb7078727e76 /lib/replace | |
parent | c3d04fd8fc856604f529b8a194a41edc30c72684 (diff) | |
download | samba-eab4d4598ef08c89f36180f8b9027444867e32bc.tar.gz samba-eab4d4598ef08c89f36180f8b9027444867e32bc.tar.bz2 samba-eab4d4598ef08c89f36180f8b9027444867e32bc.zip |
build: added LIBREPLACE_NETWORK
Diffstat (limited to 'lib/replace')
-rw-r--r-- | lib/replace/wscript | 10 |
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) |