Move the Python.h include in _helper.c to the top because Python says
so:
http://docs.python.org/2/c-api/intro.html#include-files
Though according to this, it's been fixed upstream:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=206805
Which might explain why I didn't see the problem here.
Thanks to Chandan Kumar <chandank.kumar@gmail.com> for the report.
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
#define PY_SSIZE_T_CLEAN 1
#undef NDEBUG
#include "../../config/config.h"
+
+// According to Python, its header has to go first:
+// http://docs.python.org/2/c-api/intro.html#include-files
+#include <Python.h>
+
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#endif
#include "bupsplit.h"
-#include <Python.h>
#if defined(FS_IOC_GETFLAGS) && defined(FS_IOC_SETFLAGS)
#define BUP_HAVE_FILE_ATTRS 1