Haiku has O_BINARY in fcntl.h.

Signed-off-by: Andreas Färber <andreas.faer...@web.de>
Cc: Jan Kiszka <jan.kis...@web.de>
---
 slirp/slirp.h |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/slirp/slirp.h b/slirp/slirp.h
index 3a5d592..6c7488c 100644
--- a/slirp/slirp.h
+++ b/slirp/slirp.h
@@ -24,7 +24,9 @@ typedef char *caddr_t;
 #else
 # define ioctlsocket ioctl
 # define closesocket(s) close(s)
-# define O_BINARY 0
+# if !defined(__HAIKU__)
+#  define O_BINARY 0
+# endif
 #endif
 
 #include <sys/types.h>
-- 
1.7.1.rc2.7.g3e7f1


Reply via email to