summaryrefslogtreecommitdiff
path: root/scons
diff options
context:
space:
mode:
authorAlexander von Gluck IV <kallisti5@unixzen.com>2014-03-19 00:58:01 +0000
committerAlexander von Gluck IV <kallisti5@unixzen.com>2014-03-24 19:01:53 -0500
commit7683fce8781ef0169333c5ee1276392d058cfaa8 (patch)
treeb335c4e5d94cac5fb928a8e96a13ba8c2a83a9e7 /scons
parenteccad18bd89556608092278cf46a9aaa4605f163 (diff)
haiku: Fix build through scons corrections and viewport fixes
* Add HAVE_PTHREAD, we do have pthread support wrappers now for non-native Haiku threaded applications. * Viewport changed behavior recently breaking the build. We fix this by looking at the gl_context ViewportArray (Thanks Brian for the idea) Acked-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'scons')
-rwxr-xr-xscons/gallium.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/scons/gallium.py b/scons/gallium.py
index f505a62be5..e11d4dba31 100755
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -269,6 +269,11 @@ def generate(env):
cppdefines += ['HAVE_ALIAS']
else:
cppdefines += ['GLX_ALIAS_UNSUPPORTED']
+ if env['platform'] == 'haiku':
+ cppdefines += [
+ 'HAVE_PTHREAD',
+ 'HAVE_POSIX_MEMALIGN'
+ ]
if platform == 'windows':
cppdefines += [
'WIN32',