summaryrefslogtreecommitdiff
path: root/source4/lib/socket
diff options
context:
space:
mode:
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>