Show More
@@ -309,7 +309,7 b" if sys.platform == 'win32' and sys.versi" | |||
|
309 | 309 | else: |
|
310 | 310 | extmodules.append(Extension('mercurial.osutil', ['mercurial/osutil.c'])) |
|
311 | 311 | |
|
312 |
if sys.platform |
|
|
312 | if sys.platform.startswith('linux') and os.uname()[2] > '2.6': | |
|
313 | 313 | # The inotify extension is only usable with Linux 2.6 kernels. |
|
314 | 314 | # You also need a reasonably recent C library. |
|
315 | 315 | # In any case, if it fails to build the error will be skipped ('optional'). |
@@ -443,7 +443,7 b' class socketlistener(object):' | |||
|
443 | 443 | if err.args[0] != errno.EPIPE: |
|
444 | 444 | raise |
|
445 | 445 | |
|
446 |
if sys.platform |
|
|
446 | if sys.platform.startswith('linux'): | |
|
447 | 447 | import linuxserver as _server |
|
448 | 448 | else: |
|
449 | 449 | raise ImportError |
@@ -366,7 +366,7 b' else:' | |||
|
366 | 366 | extmodules.append(Extension('mercurial.osutil', ['mercurial/osutil.c'], |
|
367 | 367 | extra_link_args=osutil_ldflags)) |
|
368 | 368 | |
|
369 |
if sys.platform |
|
|
369 | if sys.platform.startswith('linux') and os.uname()[2] > '2.6': | |
|
370 | 370 | # The inotify extension is only usable with Linux 2.6 kernels. |
|
371 | 371 | # You also need a reasonably recent C library. |
|
372 | 372 | # In any case, if it fails to build the error will be skipped ('optional'). |
General Comments 0
You need to be logged in to leave comments.
Login now