From e337caeed1459f876449611ae1684616d0ea8f55 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 26 Sep 2005 15:15:50 +0000 Subject: r10509: Some more sconscript fixes. Now getting to link stage for smbclient (This used to be commit 6df956edbab7ad5e72b2f20e74ab0f0d62528932) --- source4/lib/socket/SConscript | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source4/lib/socket') 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 -- cgit