[PATCH 4 of 6] bdiff: include util.h
Gregory Szorc
gregory.szorc at gmail.com
Thu Oct 13 15:44:16 EDT 2016
# HG changeset patch
# User Gregory Szorc <gregory.szorc at gmail.com>
# Date 1476358034 -7200
# Thu Oct 13 13:27:14 2016 +0200
# Node ID 569eb5b02fff32b0517c4c1d5ef8fb82dab33023
# Parent b9e9955e74842914d77b892fed7a0ff3a4f2d85e
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
@@ -16,8 +16,9 @@
#include <limits.h>
#include "bdiff.h"
#include "bitmanipulation.h"
+#include "util.h"
static PyObject *blocks(PyObject *self, PyObject *args)
{
More information about the Mercurial-devel
mailing list