patch to allow Haiku to run gperf's make check tests

This commit is contained in:
Scott McCreary
2009-06-25 19:48:09 +00:00
parent 68964be47a
commit 19c8634b47

View File

@@ -0,0 +1,12 @@
diff -urN gperf-3.0.4/tests/test2.c gperf-3.0.4-haiku/tests/test2.c
--- gperf-3.0.4/tests/test2.c 2009-06-25 12:10:46.000000000 +0000
+++ gperf-3.0.4-haiku/tests/test2.c 2009-06-25 12:08:34.000000000 +0000
@@ -11,7 +11,7 @@
#if !defined O_BINARY && defined _O_BINARY
# define O_BINARY _O_BINARY
#endif
-#ifdef __BEOS__
+#if defined __BEOS__ || defined __HAIKU__
# undef O_BINARY
#endif
#if O_BINARY