diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/scripting/swig/tdb.i | 8 |
1 files changed, 8 insertions, 0 deletions
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 |