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
1 changed files with 3 additions and 1 deletions

View File

@ -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>