Browse Source

wscript: Fix build error when sys.platform == linux3

Some python implementations report "linux3" on newer kernels. Of course,
we'll have to set IS_LINUX for those, too.
tags/v1.9.10
Adrian Knoth 12 years ago
parent
commit
31c89e52a8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      wscript

+ 1
- 1
wscript View File

@@ -84,7 +84,7 @@ def configure(conf):
conf.load('compiler_cc')
platform = sys.platform
conf.env['IS_MACOSX'] = platform == 'darwin'
conf.env['IS_LINUX'] = platform == 'linux' or platform == 'linux2' or platform == 'posix'
conf.env['IS_LINUX'] = platform == 'linux' or platform == 'linux2' or platform == 'linux3' or platform == 'posix'
conf.env['IS_SUN'] = platform == 'sunos'
# GNU/kFreeBSD and GNU/Hurd are treated as Linux
if platform.startswith('gnu0') or platform.startswith('gnukfreebsd'):


Loading…
Cancel
Save