Patchwork [6/8] slirp: Silence warning on Haiku

login
register
mail settings
Submitter Andreas Färber
Date Sept. 19, 2010, 10:50 p.m.
Message ID <1284936650-1203-7-git-send-email-andreas.faerber@web.de>
Download mbox | patch
Permalink /patch/65179/
State New
Headers show

Comments

Andreas Färber - Sept. 19, 2010, 10:50 p.m.
Haiku has O_BINARY in fcntl.h.

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

Patch

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>