 ===================================================================
 --- config/haiku1-config.py	(revision 0)
 +++ config/haiku1-config.py	(revision 0)
-@@ -0,0 +1,191 @@
+@@ -0,0 +1,194 @@
 +import os
++import subprocess
++import sys
 +
 +HAIKU_DEVELOP_DIR = '/boot/develop'
 +HAIKU_DEVELOP_LIB = HAIKU_DEVELOP_DIR + '/lib/x86' # TODO arch

+BF_DEBUG = 'false'
+BF_DEBUG_FLAGS = '-g'
+
+BF_BUILDDIR = '../build-haiku1'
+BF_INSTALLDIR='../install-haiku1'
+

+		fGSystem->pushEvent(event);
+	}
+}
Index: source/blender/imbuf/intern/imbuf.h
===================================================================
--- source/blender/imbuf/intern/imbuf.h	(revision 19951)
+++ source/blender/imbuf/intern/imbuf.h	(working copy)
@@ -51,7 +51,7 @@
 #include <sys/mman.h>
 #endif
 
-#if !defined(WIN32) && !defined(__BeOS)
+#if !defined(WIN32) && !defined(__BeOS) && !defined(__HAIKU__)
 #define O_BINARY 0
 #endif
 
Index: source/blender/blenlib/intern/storage.c
===================================================================
--- source/blender/blenlib/intern/storage.c	(revision 19951)
