From 217fac860134c60302332031308ed91b3b0b7b42 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Thu, 22 Sep 2005 07:17:24 +0000 Subject: 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) --- source4/SConstruct | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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 # 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 +#include """ 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 '): + defines['HAVE_SIG_ATOMIC_T_TYPE'] = 1 + if conf.TryCompile(""" #include -- cgit