summaryrefslogtreecommitdiff
path: root/source4/lib/socket
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-09-26 15:15:50 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:38:58 -0500
commite337caeed1459f876449611ae1684616d0ea8f55 (patch)
tree172bc1ed142701b20975771e3d788a0fb9aea034 /source4/lib/socket
parent98a7da234869576c0b4b41ede9fd64a022c3ec58 (diff)
downloadsamba-e337caeed1459f876449611ae1684616d0ea8f55.tar.gz
samba-e337caeed1459f876449611ae1684616d0ea8f55.tar.bz2
samba-e337caeed1459f876449611ae1684616d0ea8f55.zip
r10509: Some more sconscript fixes. Now getting to link stage for smbclient
(This used to be commit 6df956edbab7ad5e72b2f20e74ab0f0d62528932)
Diffstat (limited to 'source4/lib/socket')
-rw-r--r--source4/lib/socket/SConscript8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/lib/socket/SConscript b/source4/lib/socket/SConscript
index c4e791467a..26c8bf444c 100644
--- a/source4/lib/socket/SConscript
+++ b/source4/lib/socket/SConscript
@@ -1,11 +1,11 @@
#!/usr/bin/env python
-Import('hostenv')
+Import('hostenv defines')
if hostenv['configure']:
conf = hostenv.Configure()
- conf.CheckCHeader('sys/socket.h')
- conf.CheckCHeader('sys/sockio.h')
- conf.CheckCHeader('sys/un.h')
+ for h in ['sys/socket.h','sys/sockio.h','sys/un.h']:
+ if conf.CheckCHeader(h):
+ defines['HAVE_' + h.upper().replace('/','_').replace('.','_')] = 1
#HAVE_SOCK_SIN_LEN
conf.TryCompile("""
#include <sys/types.h>