mirror of https://github.com/nodejs/node.git
win: Define __POSIX__ constant when the platform is POSIX-y
parent
9032bfce59
commit
99ba903d46
4
wscript
4
wscript
|
@ -356,6 +356,10 @@ def configure(conf):
|
||||||
# platform
|
# platform
|
||||||
conf.env.append_value('CPPFLAGS', '-DPLATFORM="' + conf.env['DEST_OS'] + '"')
|
conf.env.append_value('CPPFLAGS', '-DPLATFORM="' + conf.env['DEST_OS'] + '"')
|
||||||
|
|
||||||
|
# posix?
|
||||||
|
if not sys.platform.startswith('win'):
|
||||||
|
conf.env.append_value('CPPFLAGS', '-D__POSIX__=1')
|
||||||
|
|
||||||
platform_file = "src/platform_%s.cc" % conf.env['DEST_OS']
|
platform_file = "src/platform_%s.cc" % conf.env['DEST_OS']
|
||||||
if os.path.exists(join(cwd, platform_file)):
|
if os.path.exists(join(cwd, platform_file)):
|
||||||
Options.options.platform_file = True
|
Options.options.platform_file = True
|
||||||
|
|
Loading…
Reference in New Issue