diff -urN libebml-0.7.8/ebml/c/libebml_t.h libebml-0.7.8-haiku/ebml/c/libebml_t.h
--- libebml-0.7.8/ebml/c/libebml_t.h	2009-03-01 02:10:48.000000000 +0000
+++ libebml-0.7.8-haiku/ebml/c/libebml_t.h	2009-03-01 02:06:42.000000000 +0000
@@ -72,7 +72,7 @@
     typedef uint16_t uint16;
     typedef uint8_t uint8;
 # endif // __GNUC__
-#elif defined(__BEOS__)
+#elif defined(__BEOS__) || defined(__HAIKU__)
 #include <SupportDefs.h>
 #elif defined(DJGPP)				/* SL : DJGPP doesn't support POSIX types ???? */
     typedef signed long long int64;
@@ -98,7 +98,7 @@
     typedef uint32_t uint32;
     typedef uint16_t uint16;
     typedef uint8_t uint8;
-#elif defined(__BEOS__)
+#elif defined(__BEOS__) || defined(__HAIKU__)
 # include <support/SupportDefs.h>
 #else // anything else (Linux, BSD, ...)
 # include <sys/types.h>
