scons: Add Haiku build support
[mesa.git] / scons / gallium.py
index 221d1848f6dc646ff80438041c1f6065ee9ef42d..5a0c6fef13c175b0069afa3492ad93980e09a9cf 100755 (executable)
@@ -289,6 +289,8 @@ def generate(env):
             cppdefines += ['_DEBUG']
     if platform == 'windows':
         cppdefines += ['PIPE_SUBSYSTEM_WINDOWS_USER']
+    if platform == 'haiku':
+        cppdefines += ['BEOS_THREADS']
     if env['embedded']:
         cppdefines += ['PIPE_SUBSYSTEM_EMBEDDED']
     env.Append(CPPDEFINES = cppdefines)