|
@@ -0,0 +1,20 @@
+--- setup.py.orig 2009-07-04 10:47:13.000000000 +0200
++++ setup.py 2009-07-04 10:48:13.000000000 +0200
+@@ -26,7 +26,7 @@
+ raise SystemExit(
+ "Couldn't import standard zlib (incomplete Python install).")
+
+-import os, subprocess, time
++import os, subprocess, time, platform
+ import shutil
+ import tempfile
+ from distutils.core import setup, Extension
+@@ -236,7 +236,7 @@
+ packages = ['mercurial', 'mercurial.hgweb', 'hgext', 'hgext.convert',
+ 'hgext.highlight', 'hgext.zeroconf', ]
+
+-if sys.platform == 'linux2' and os.uname()[2] > '2.6':
++if sys.platform == 'linux2' and os.uname()[2] > '2.6' and platform.libc_ver > '2.4':
+ # The inotify extension is only usable with Linux 2.6 kernels.
+ # You also need a reasonably recent C library.
+ cc = new_compiler()
|