s4: Include Python.h early to avoid double definition errors.
authorJelmer Vernooij <jelmer@samba.org>
Wed, 20 Jan 2010 02:07:09 +0000 (15:07 +1300)
committerJelmer Vernooij <jelmer@samba.org>
Thu, 21 Jan 2010 03:15:10 +0000 (16:15 +1300)
lib/talloc/pytalloc.c
source4/utils/net/net.c

index c6decf33f16e46b29d112574ef87ecec14476da4..ad595a10540e29bb6fa8ee76f07dc029e1e159c5 100644 (file)
@@ -17,6 +17,7 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
+#include <Python.h>
 #include "replace.h"
 #include <talloc.h>
 #include <pytalloc.h>
index ba935b998667b3c82aff1dc4d2d512b1098eb1e2..2d45a4bb54099efeb686d2aab1d73caf5f219258 100644 (file)
@@ -41,6 +41,7 @@
 /*                                                   */
 /*****************************************************/
 
+#include <Python.h>
 #include "includes.h"
 #include "utils/net/net.h"
 #include "lib/cmdline/popt_common.h"
@@ -49,7 +50,6 @@
 #include "param/param.h"
 #include "lib/events/events.h"
 #include "auth/credentials/credentials.h"
-#include <Python.h>
 #include "scripting/python/modules.h"
 
 static PyObject *py_tuple_from_argv(int argc, const char *argv[])