summaryrefslogtreecommitdiff
path: root/source4/scripting/swig/tdb.i
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting/swig/tdb.i')
-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);