summaryrefslogtreecommitdiff
path: root/scons/gallium.py
diff options
context:
space:
mode:
Diffstat (limited to 'scons/gallium.py')
-rwxr-xr-xscons/gallium.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/scons/gallium.py b/scons/gallium.py
index a4112773241..61643a6d4fc 100755
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -325,8 +325,10 @@ def generate(env):
'GLX_INDIRECT_RENDERING',
]
- if env['platform'] in ('linux', 'darwin'):
+ conf = SCons.Script.Configure(env)
+ if conf.CheckHeader('xlocale.h'):
cppdefines += ['HAVE_XLOCALE_H']
+ env = conf.Finish()
if platform == 'windows':
cppdefines += [