summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/python/py_tdb.c8
-rw-r--r--source3/python/py_winreg.h3
2 files changed, 8 insertions, 3 deletions
diff --git a/source3/python/py_tdb.c b/source3/python/py_tdb.c
index e525422a30..37f64ce780 100644
--- a/source3/python/py_tdb.c
+++ b/source3/python/py_tdb.c
@@ -27,6 +27,14 @@
*/
#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 */
diff --git a/source3/python/py_winreg.h b/source3/python/py_winreg.h
index e19674d218..95d5fc6ea9 100644
--- a/source3/python/py_winreg.h
+++ b/source3/python/py_winreg.h
@@ -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 */