svn commit: samba r5777 - in branches/SAMBA_4_0/source/scripting/swig: .

tpot at samba.org tpot at samba.org
Sat Mar 12 22:24:46 GMT 2005


Author: tpot
Date: 2005-03-12 22:24:46 +0000 (Sat, 12 Mar 2005)
New Revision: 5777

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

Log:
At some stage SIG_ATOMIC_T was renamed to sig_atomic_t.  This should
fix abartlet's compile problem.

Modified:
   branches/SAMBA_4_0/source/scripting/swig/tdb.i


Changeset:
Modified: branches/SAMBA_4_0/source/scripting/swig/tdb.i
===================================================================
--- branches/SAMBA_4_0/source/scripting/swig/tdb.i	2005-03-12 18:03:54 UTC (rev 5776)
+++ branches/SAMBA_4_0/source/scripting/swig/tdb.i	2005-03-12 22:24:46 UTC (rev 5777)
@@ -35,14 +35,11 @@
 #undef HAVE_FSTAT
 #endif
 
-/* The tdb_set_lock_alarm() function requires the SIG_ATOMIC_T
-   function from includes.h */
+/* The tdb_set_lock_alarm() function requires the sig_atomic_t type */
 
 #include "include/config.h"
-#if defined(HAVE_SIG_ATOMIC_T_TYPE)
-typedef sig_atomic_t SIG_ATOMIC_T;
-#else
-typedef int SIG_ATOMIC_T;
+#if !defined(HAVE_SIG_ATOMIC_T_TYPE)
+typedef int sig_atomic_t
 #endif
 
 #if (__GNUC__ >= 3)
@@ -140,7 +137,7 @@
 void tdb_unlockall(TDB_CONTEXT *tdb);
 
 /* Low level locking functions: use with care */
-void tdb_set_lock_alarm(SIG_ATOMIC_T *palarm);
+void tdb_set_lock_alarm(sig_atomic_t *palarm);
 int tdb_chainlock(TDB_CONTEXT *tdb, TDB_DATA key);
 int tdb_chainunlock(TDB_CONTEXT *tdb, TDB_DATA key);
 



More information about the samba-cvs mailing list