aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Färber <andreas.faerber@web.de>2010-09-20 00:50:48 +0200
committerBlue Swirl <blauwirbel@gmail.com>2010-10-03 06:31:49 +0000
commit71ea3460b720740dcf8bdc3a0ea31a573e5a6cfb (patch)
tree2834f5e27e346e897119d157279e777e8073a53f
parente752243133fa620f7ed2c04d0f59eb6682d79e42 (diff)
downloadslirp-71ea3460b720740dcf8bdc3a0ea31a573e5a6cfb.zip
slirp-71ea3460b720740dcf8bdc3a0ea31a573e5a6cfb.tar.gz
slirp-71ea3460b720740dcf8bdc3a0ea31a573e5a6cfb.tar.bz2
slirp: Silence warning on Haiku
Haiku has O_BINARY in fcntl.h. Signed-off-by: Andreas Färber <andreas.faerber@web.de> Cc: Jan Kiszka <jan.kiszka@web.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
-rw-r--r--slirp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/slirp.h b/slirp.h
index dea85b1..a1b9572 100644
--- a/slirp.h
+++ b/slirp.h
@@ -24,8 +24,10 @@ typedef char *caddr_t;
#else
#define ioctlsocket ioctl
#define closesocket(s) close(s)
+#if !defined(__HAIKU__)
#define O_BINARY 0
#endif
+#endif
#include <sys/types.h>
#ifdef HAVE_SYS_BITYPES_H