summaryrefslogtreecommitdiff
path: root/source4/SConstruct
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2005-09-22 07:17:24 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:38:43 -0500
commit217fac860134c60302332031308ed91b3b0b7b42 (patch)
treee4f11eace1cde62e57c44b440f7f1756fa8b81a8 /source4/SConstruct
parent7e8372f253b298cd9fd041ab7bab50323963154d (diff)
downloadsamba-217fac860134c60302332031308ed91b3b0b7b42.tar.gz
samba-217fac860134c60302332031308ed91b3b0b7b42.tar.bz2
samba-217fac860134c60302332031308ed91b3b0b7b42.zip
r10416: Detect some more types to get rid of spurious warnings in the
lib/replace/replace.h header. Running 'scons lib/tdb' now (mostly) builds tdb. (This used to be commit 324bfd5d25212a0b0a3a7e30be62d1b72b10b98f)
Diffstat (limited to 'source4/SConstruct')
-rw-r--r--source4/SConstruct13
1 files changed, 12 insertions, 1 deletions
diff --git a/source4/SConstruct b/source4/SConstruct
index 0e0a8a278f..635562d027 100644
--- a/source4/SConstruct
+++ b/source4/SConstruct
@@ -7,7 +7,7 @@
# Copyright (C) 2005 Jelmer Vernooij <jelmer@samba.org>
# Published under the GNU GPL
-import cPickle
+import cPickle, string
# We don't care about NFS builds...
@@ -149,11 +149,22 @@ if hostenv['configure']:
type_headers = """
#include <stdint.h>
+#include <sys/types.h>
"""
for t in needed_types:
if not conf.CheckType(t,type_headers):
defines[t] = needed_types[t]
+ for t in ['u_int32_t', 'u_int16_t', 'u_int8_t']:
+ if conf.CheckType(t, type_headers):
+ defines['HAVE_%s' % string.upper(t)] = 1
+
+ if conf.CheckType('comparison_fn_t', type_headers):
+ defines['HAVE_COMPARISON_FN_T'] = 1
+
+ if conf.CheckType('sig_atomic_t', '#include <signal.h>'):
+ defines['HAVE_SIG_ATOMIC_T_TYPE'] = 1
+
if conf.TryCompile("""
#include <sys/types.h>