]> granicus.if.org Git - python/commitdiff
Try to fix compilation failure under OS X
authorAntoine Pitrou <solipsis@pitrou.net>
Sat, 30 Jun 2012 20:56:37 +0000 (22:56 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Sat, 30 Jun 2012 20:56:37 +0000 (22:56 +0200)
setup.py

index 19e6bc366867aa4580f736508b5f10f24fd77807..62e5ad2428a963fb6d002618841786013be68a87 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -597,7 +597,7 @@ class PyBuildExt(build_ext):
             if not os.path.exists(self.build_temp):
                 os.makedirs(self.build_temp)
             ret = os.system("ldd %s > %s" % (do_readline, tmpfile))
-            if ret >> 8 == 0:
+            if ret == 0:
                 with open(tmpfile) as fp:
                     for ln in fp:
                         if 'curses' in ln: