From e3f3dfa6c3798a6a426db71ff67c67b5bdf4bde7 Mon Sep 17 00:00:00 2001 From: Renato Cunha Date: Fri, 2 Jul 2010 16:21:36 -0300 Subject: [PATCH] setup.py: Add 'mercurial' as include dir for the inotify compiler. This patch adds access to util.h for the inotify C module by adding the "mercurial" directory as an include dir, enabling access to the macros defined in util.h. --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 422e3d44f4..d37b205efa 100644 --- a/setup.py +++ b/setup.py @@ -286,7 +286,8 @@ if sys.platform == 'linux2' and os.uname()[2] > '2.6': cc = new_compiler() if hasfunction(cc, 'inotify_add_watch'): inotify = Extension('hgext.inotify.linux._inotify', - ['hgext/inotify/linux/_inotify.c']) + ['hgext/inotify/linux/_inotify.c'], + ['mercurial']) inotify.optional = True extmodules.append(inotify) packages.extend(['hgext.inotify', 'hgext.inotify.linux'])