From fd0aa010be16bd0a127fa3108b6b4a443ab6ebe6 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Sat, 12 Mar 2005 22:24:46 +0000 Subject: 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) --- source4/scripting/swig/tdb.i | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'source4/scripting/swig') 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); -- cgit