svn commit: samba r10416 - in branches/SAMBA_4_0/source: .

tpot at samba.org tpot at samba.org
Thu Sep 22 07:17:24 GMT 2005


Author: tpot
Date: 2005-09-22 07:17:24 +0000 (Thu, 22 Sep 2005)
New Revision: 10416

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=10416

Log:
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.

Modified:
   branches/SAMBA_4_0/source/SConstruct


Changeset:
Modified: branches/SAMBA_4_0/source/SConstruct
===================================================================
--- branches/SAMBA_4_0/source/SConstruct	2005-09-22 06:38:26 UTC (rev 10415)
+++ branches/SAMBA_4_0/source/SConstruct	2005-09-22 07:17:24 UTC (rev 10416)
@@ -7,7 +7,7 @@
 # Copyright (C) 2005 Jelmer Vernooij <jelmer at samba.org>
 # Published under the GNU GPL
 
-import cPickle
+import cPickle, string
 
 # We don't care about NFS builds...
 
@@ -149,11 +149,22 @@
 
 	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>
 



More information about the samba-cvs mailing list