summaryrefslogtreecommitdiff
path: root/source3/python
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-03-19 11:25:21 +0000
committerTim Potter <tpot@samba.org>2003-03-19 11:25:21 +0000
commit50e42357ea5eb3d16185f3b1019ed21bd2314cc9 (patch)
treecf00cdb49906df837ecf6cedf1c4cc3e065630d3 /source3/python
parent8406be4f68f90a9aa8b3ff8d745ab57be1528a9e (diff)
downloadsamba-50e42357ea5eb3d16185f3b1019ed21bd2314cc9.tar.gz
samba-50e42357ea5eb3d16185f3b1019ed21bd2314cc9.tar.bz2
samba-50e42357ea5eb3d16185f3b1019ed21bd2314cc9.zip
Fix compiler warning.
(This used to be commit 74c1cd0040890d24e6191d4cb0467e9f9d70f5dc)
Diffstat (limited to 'source3/python')
-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 */