# HG changeset patch # User Gregory Szorc # Date 2016-10-13 11:27:14 # Node ID 15635d8b17e0bcd44dad8d94ff74db1439fd69ec # Parent 5f7151e6de851c7bb2ad4d30ee069a6c51a57681 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! diff --git a/mercurial/bdiff_module.c b/mercurial/bdiff_module.c --- a/mercurial/bdiff_module.c +++ b/mercurial/bdiff_module.c @@ -17,6 +17,7 @@ #include "bdiff.h" #include "bitmanipulation.h" +#include "util.h" static PyObject *blocks(PyObject *self, PyObject *args)