summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2005-03-12 22:24:46 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:11:02 -0500
commitfd0aa010be16bd0a127fa3108b6b4a443ab6ebe6 (patch)
tree608782662346b95d313af73e311c44ae4bc51579 /source4
parente9ca6e48fff41c5f457075156a8c4b2c729c5527 (diff)
downloadsamba-fd0aa010be16bd0a127fa3108b6b4a443ab6ebe6.tar.gz
samba-fd0aa010be16bd0a127fa3108b6b4a443ab6ebe6.tar.bz2
samba-fd0aa010be16bd0a127fa3108b6b4a443ab6ebe6.zip
r5777: At some stage SIG_ATOMIC_T was renamed to sig_atomic_t. This should
fix abartlet's compile problem. (This used to be commit 170139035ab1e7659a82e1e2d40990f4d7f146c3)
Diffstat (limited to 'source4')
-rw-r--r--source4/scripting/swig/tdb.i11
1 files changed, 4 insertions, 7 deletions
diff --git a/source4/scripting/swig/tdb.i b/source4/scripting/swig/tdb.i
index 0b169510c1..0110f33824 100644
--- a/source4/scripting/swig/tdb.i
+++ b/source4/scripting/swig/tdb.i
@@ -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 @@ int tdb_lockall(TDB_CONTEXT *tdb);
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);