# HG changeset patch # User Gregory Szorc # Date 1476358034 -7200 # 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 -r 5f7151e6de85 -r 15635d8b17e0 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)