From 7683fce8781ef0169333c5ee1276392d058cfaa8 Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Wed, 19 Mar 2014 00:58:01 +0000 Subject: 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 --- scons/gallium.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scons') diff --git a/scons/gallium.py b/scons/gallium.py index f505a62be56..e11d4dba312 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', -- cgit v1.2.3