[PATCH] sig_atomic_t
Flavien Lebarbe
flavien at lebarbe.net
Thu Jun 19 16:10:02 GMT 2003
Hello,
Attached is a patch (against SAMBA_3_0) to use SIG_ATOMIC_T
instead of sig_atomic_t.
Please apply, as it might be of some use for other people
cross-compiling like me today. :o)
Thanks,
Flavien.
PS: Please CC me, as I'm not subscribed to the list.
-------------- next part --------------
Index: source/tdb/tdb.c
===================================================================
RCS file: /cvsroot/samba/source/tdb/tdb.c,v
retrieving revision 1.125
diff -u -w -p -r1.125 tdb.c
--- source/tdb/tdb.c 13 Mar 2003 05:52:49 -0000 1.125
+++ source/tdb/tdb.c 19 Jun 2003 15:56:35 -0000
@@ -187,9 +187,9 @@ struct list_struct {
a blocking lock on SIGALRM.
***************************************************************/
-static sig_atomic_t *palarm_fired;
+static SIG_ATOMIC_T *palarm_fired;
-void tdb_set_lock_alarm(sig_atomic_t *palarm)
+void tdb_set_lock_alarm(SIG_ATOMIC_T *palarm)
{
palarm_fired = palarm;
}
Index: source/tdb/tdb.h
===================================================================
RCS file: /cvsroot/samba/source/tdb/tdb.h,v
retrieving revision 1.30
diff -u -w -p -r1.30 tdb.h
--- source/tdb/tdb.h 11 Jan 2003 02:30:34 -0000 1.30
+++ source/tdb/tdb.h 19 Jun 2003 15:56:35 -0000
@@ -127,7 +127,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);
More information about the samba-technical
mailing list