mirror of https://gitee.com/openkylin/qemu.git
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:
parent
3ee66dfa52
commit
4a2b39d323
|
@ -24,8 +24,10 @@ typedef char *caddr_t;
|
|||
#else
|
||||
# define ioctlsocket ioctl
|
||||
# define closesocket(s) close(s)
|
||||
# if !defined(__HAIKU__)
|
||||
# define O_BINARY 0
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
#ifdef HAVE_SYS_BITYPES_H
|
||||
|
|
Loading…
Reference in New Issue