Commit 31c89e52 authored by Adrian Knoth's avatar Adrian Knoth
Browse files

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.
parent 2731c1e8
...@@ -84,7 +84,7 @@ def configure(conf): ...@@ -84,7 +84,7 @@ def configure(conf):
conf.load('compiler_cc') conf.load('compiler_cc')
platform = sys.platform platform = sys.platform
conf.env['IS_MACOSX'] = platform == 'darwin' 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' conf.env['IS_SUN'] = platform == 'sunos'
# GNU/kFreeBSD and GNU/Hurd are treated as Linux # GNU/kFreeBSD and GNU/Hurd are treated as Linux
if platform.startswith('gnu0') or platform.startswith('gnukfreebsd'): if platform.startswith('gnu0') or platform.startswith('gnukfreebsd'):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment