Fix compiler warning.
authorTim Potter <tpot@samba.org>
Wed, 19 Mar 2003 11:25:21 +0000 (11:25 +0000)
committerTim Potter <tpot@samba.org>
Wed, 19 Mar 2003 11:25:21 +0000 (11:25 +0000)
source/python/py_tdb.c
source/python/py_winreg.h

index e525422a304367245c40eb0396b20fa61b217498..37f64ce7802b6732b2be03aa45b6c24fa2413ba7 100644 (file)
 */
 
 #include "includes.h"
+
+/* This symbol is used in both includes.h and Python.h which causes an
+   annoying compiler warning. */
+
+#ifdef HAVE_FSTAT
+#undef HAVE_FSTAT
+#endif
+
 #include "Python.h"
 
 /* Tdb exception */
index e19674d2181b2e7ffec4655a991f560f9dc64ade..95d5fc6ea957ca992a1bc96827b77d4ccc3db6b4 100644 (file)
@@ -21,9 +21,6 @@
 #ifndef _PY_WINREG_H
 #define _PY_WINREG_H
 
-#include "includes.h"
-#include "Python.h"
-
 #include "python/py_common.h"
 
 #endif /* _PY_WINREG_H */