contrib/setup3k.py
changeset 15151 0d4f6e843b05
parent 14972 bcba68e81a81
child 15167 8df4166b6f63
--- a/contrib/setup3k.py	Thu Sep 22 15:15:18 2011 +0200
+++ b/contrib/setup3k.py	Tue Sep 20 15:21:27 2011 +0300
@@ -309,7 +309,7 @@
 else:
     extmodules.append(Extension('mercurial.osutil', ['mercurial/osutil.c']))
 
-if sys.platform == 'linux2' and os.uname()[2] > '2.6':
+if sys.platform.startswith('linux') and os.uname()[2] > '2.6':
     # The inotify extension is only usable with Linux 2.6 kernels.
     # You also need a reasonably recent C library.
     # In any case, if it fails to build the error will be skipped ('optional').