aboutsummaryrefslogtreecommitdiff
path: root/slirp
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
commit4a2b39d3232fea40d3e396a683f27f5e378ae46e (patch)
tree232b3a32a4102b3504bd5451ca2dbd82889a4ed0 /slirp
parent3ee66dfa529e36e0dab130ace2abc94f0bd65156 (diff)
downloadqemu-4a2b39d3232fea40d3e396a683f27f5e378ae46e.zip
qemu-4a2b39d3232fea40d3e396a683f27f5e378ae46e.tar.gz
qemu-4a2b39d3232fea40d3e396a683f27f5e378ae46e.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>
Diffstat (limited to 'slirp')
-rw-r--r--slirp/slirp.h4
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>