diff options
author | Andreas Färber <andreas.faerber@web.de> | 2010-09-20 00:50:48 +0200 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-10-03 06:31:49 +0000 |
commit | 4a2b39d3232fea40d3e396a683f27f5e378ae46e (patch) | |
tree | 232b3a32a4102b3504bd5451ca2dbd82889a4ed0 /slirp | |
parent | 3ee66dfa529e36e0dab130ace2abc94f0bd65156 (diff) | |
download | qemu-4a2b39d3232fea40d3e396a683f27f5e378ae46e.tar.gz qemu-4a2b39d3232fea40d3e396a683f27f5e378ae46e.tar.bz2 qemu-4a2b39d3232fea40d3e396a683f27f5e378ae46e.zip |
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.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/slirp/slirp.h b/slirp/slirp.h index 3a5d592fb9..6c7488c9a4 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> |