From 5230295b6b927649cb304790f781fdff18fc162d Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Sat, 4 Sep 2004 23:04:31 +0000 Subject: r2227: Get rid of annoying compiler warning. (This used to be commit 64f961f039545c9948eb7d7652b7494be2443174) --- source4/scripting/swig/tdb.i | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source4/scripting') diff --git a/source4/scripting/swig/tdb.i b/source4/scripting/swig/tdb.i index f4a3f53c4b..0c756765de 100644 --- a/source4/scripting/swig/tdb.i +++ b/source4/scripting/swig/tdb.i @@ -28,6 +28,13 @@ %{ +/* This symbol is used in both includes.h and Python.h which causes an + annoying compiler warning. */ + +#ifdef HAVE_FSTAT +#undef HAVE_FSTAT +#endif + /* The tdb_set_lock_alarm() function requires the SIG_ATOMIC_T function from includes.h */ @@ -44,6 +51,7 @@ typedef int SIG_ATOMIC_T; %} + /* The tdb functions will crash if a NULL tdb is passed */ %include exception.i -- cgit