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>
This commit is contained in:
Andreas Färber 2010-09-20 00:50:48 +02:00 committed by Blue Swirl
parent 3ee66dfa52
commit 4a2b39d323

View File

@ -24,8 +24,10 @@ typedef char *caddr_t;
#else #else
# define ioctlsocket ioctl # define ioctlsocket ioctl
# define closesocket(s) close(s) # define closesocket(s) close(s)
# if !defined(__HAIKU__)
# define O_BINARY 0 # define O_BINARY 0
# endif # endif
#endif
#include <sys/types.h> #include <sys/types.h>
#ifdef HAVE_SYS_BITYPES_H #ifdef HAVE_SYS_BITYPES_H