     #elif defined ALLEGRO_MPW
 diff -urN allegro-4.3.10/include/allegro/platform/albecfg.h allegro-4.3.10-haiku/include/allegro/platform/albecfg.h
 --- allegro-4.3.10/include/allegro/platform/albecfg.h	2007-06-15 19:52:28.000000000 -0700
-+++ allegro-4.3.10-haiku/include/allegro/platform/albecfg.h	2008-09-12 03:49:24.000000000 -0700
-@@ -31,7 +31,12 @@
++++ allegro-4.3.10-haiku/include/allegro/platform/albecfg.h	2008-09-12 04:28:30.000000000 -0700
+@@ -31,7 +31,13 @@
  #define ALLEGRO_HAVE_SYS_TIME_H 1
  
  /* describe this platform */

+#endif
+#if defined __HAIKU__
+  #define ALLEGRO_PLATFORM_STR  "Haiku"
+#endif
 #define ALLEGRO_LITTLE_ENDIAN
 #define ALLEGRO_CONSOLE_OK
 #define ALLEGRO_USE_CONSTRUCTOR
diff -urN allegro-4.3.10/makefile.all allegro-4.3.10-haiku/makefile.all
--- allegro-4.3.10/makefile.all	2008-01-14 03:55:28.000000000 -0800
+++ allegro-4.3.10-haiku/makefile.all	2008-09-12 03:49:24.000000000 -0700

          /* Is there a bug in this routine, or in gcc under BeOS/x86? --PW */
          { int i; for (i=1; i; i--); }
 #endif
diff -urN allegro-4.3.10/src/unix/usigalrm.c allegro-4.3.10-haiku/src/unix/usigalrm.c
--- allegro-4.3.10/src/unix/usigalrm.c	2007-06-15 19:52:28.000000000 -0700
+++ allegro-4.3.10-haiku/src/unix/usigalrm.c	2008-09-12 04:57:53.000000000 -0700
@@ -27,6 +27,10 @@
 #include "allegro/platform/aintunix.h"
 #endif
 
+#ifdef ALLEGRO_HAIKU
+#define ALLEGRO_HAVE_LIBPTHREAD 1
+#endif
+
 
 #ifndef ALLEGRO_HAVE_LIBPTHREAD
 
diff -urN allegro-4.3.10/src/unix/ustimer.c allegro-4.3.10-haiku/src/unix/ustimer.c
--- allegro-4.3.10/src/unix/ustimer.c	2007-06-15 19:52:28.000000000 -0700
+++ allegro-4.3.10-haiku/src/unix/ustimer.c	2008-09-12 04:59:13.000000000 -0700
@@ -20,6 +20,9 @@
 #include "allegro/internal/aintern.h"
 #include "allegro/platform/aintunix.h"
 
+#ifdef ALLEGRO_HAIKU
+#define ALLEGRO_HAVE_LIBPTHREAD 1
+#endif
 
 
 #ifndef ALLEGRO_HAVE_LIBPTHREAD
diff -urN allegro-4.3.10/tools/dat2c.c allegro-4.3.10-haiku/tools/dat2c.c
--- allegro-4.3.10/tools/dat2c.c	2005-04-28 02:53:38.000000000 -0700
+++ allegro-4.3.10-haiku/tools/dat2c.c	2008-09-12 03:49:24.000000000 -0700
