Avoid using a utility header for Python replacements included in Samba,
[metze/samba/wip.git] / libcli / nbt / pynbt.c
index 99eff94bda3ade4bf8f331fca3df38608cafb83a..63ee9bb01ffd4eb5ef3bba7c22d2b2f8f1b5ece3 100644 (file)
 */
 
 #include "includes.h"
-#include "../lib/util/python_util.h"
+#include <Python.h>
 #include "libcli/util/pyerrors.h"
 #include "scripting/python/modules.h"
 #include "../libcli/nbt/libnbt.h"
 #include "lib/events/events.h"
 
+#ifndef Py_RETURN_NONE
+#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
+#endif
+
 PyAPI_DATA(PyTypeObject) nbt_node_Type;
 
 typedef struct {