summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>