Avoid using a utility header for Python replacements included in Samba,
[kai/samba-autobuild/.git] / lib / tevent / pytevent.c
index 756d013ede83b771aee82e6c5d2535ca1c2f0e0d..5d10554531ea3f9eba0d627fe1a9fb548c3ae258 100644 (file)
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
-#include "../lib/util/python_util.h"
+#include <Python.h>
+
+#ifndef Py_RETURN_NONE
+#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
+#endif
+
 #include <tevent.h>
 #include <stdbool.h>
 #include <tevent_util.h>