From 99ba903d464e6291f80c767beb52f4bcda2c93f9 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Thu, 25 Nov 2010 01:49:21 +0100 Subject: [PATCH] win: Define __POSIX__ constant when the platform is POSIX-y --- wscript | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wscript b/wscript index c783637c6d..43a44292bc 100644 --- a/wscript +++ b/wscript @@ -356,6 +356,10 @@ def configure(conf): # platform 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'] if os.path.exists(join(cwd, platform_file)): Options.options.platform_file = True