bdiff: include util.h
authorGregory Szorc <gregory.szorc@gmail.com>
Thu, 13 Oct 2016 13:27:14 +0200
changeset 30170 15635d8b17e0
parent 30169 5f7151e6de85
child 30171 7a3b59f0329a
bdiff: include util.h Without this, IS_PY3K isn't define and the preprocessor uses the incorrect module loading code, causing the module fail to load at run-time. After this patch, all our C extensions (except for watchman's) appear to import correctly in Python 3!
mercurial/bdiff_module.c
--- a/mercurial/bdiff_module.c	Thu Oct 13 13:22:40 2016 +0200
+++ b/mercurial/bdiff_module.c	Thu Oct 13 13:27:14 2016 +0200
@@ -17,6 +17,7 @@
 
 #include "bdiff.h"
 #include "bitmanipulation.h"
+#include "util.h"
 
 
 static PyObject *blocks(PyObject *self, PyObject *args)