Patch to allow libebml to build on Haiku

This commit is contained in:
Scott McCreary
2009-03-01 02:16:41 +00:00
parent b463c050a9
commit fe3669985f

View File

@@ -0,0 +1,21 @@
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>