summaryrefslogtreecommitdiff
path: root/source4/param/pyparam_util.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-10-23 16:23:01 +1100
committerAndrew Tridgell <tridge@samba.org>2009-10-23 16:23:01 +1100
commit3050f8328862c7c77d3d692453bd9cc0885824e5 (patch)
tree2c49a56892335d182a26b9072082f28e0152b830 /source4/param/pyparam_util.c
parente34106ca8b001d75182975a89145ded75dc6619d (diff)
downloadsamba-3050f8328862c7c77d3d692453bd9cc0885824e5.tar.gz
s4-python: we need to include Python.h first
If we don't include Python.h first then we get a pile of warnings due to broken redefines of XOPEN_SOURCE in the Python includes.
Diffstat (limited to 'source4/param/pyparam_util.c')
-rw-r--r--source4/param/pyparam_util.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source4/param/pyparam_util.c b/source4/param/pyparam_util.c
index 9e4a6cdf648..e5c416bf843 100644
--- a/source4/param/pyparam_util.c
+++ b/source4/param/pyparam_util.c
@@ -17,13 +17,10 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <stdint.h>
-#include <stdbool.h>
-
+#include <Python.h>
#include "includes.h"
#include "param/param.h"
#include "param/loadparm.h"
-#include <Python.h>
#include "pytalloc.h"
#define PyLoadparmContext_AsLoadparmContext(obj) py_talloc_get_type(obj, struct loadparm_context)