slirp_glue: cleanup compiler warning of duplicate definition of O_BINARY under Cygwin
This commit is contained in:
parent
9d979360b4
commit
4d25cc4bc5
1 changed files with 4 additions and 0 deletions
|
@ -18,6 +18,10 @@
|
||||||
#include "glib.h"
|
#include "glib.h"
|
||||||
#include "config-host.h"
|
#include "config-host.h"
|
||||||
|
|
||||||
|
#if defined(O_BINARY) /* O_BINARY isn't used in slirp */
|
||||||
|
#undef O_BINARY /* Avoid potential redefinition elsewhere */
|
||||||
|
#endif
|
||||||
|
|
||||||
/* HOST_LONG_BITS is the size of a native pointer in bits. */
|
/* HOST_LONG_BITS is the size of a native pointer in bits. */
|
||||||
#if UINTPTR_MAX == UINT32_MAX
|
#if UINTPTR_MAX == UINT32_MAX
|
||||||
# define HOST_LONG_BITS 32
|
# define HOST_LONG_BITS 32
|
||||||
|
|
Loading…
Add table
Reference in a new issue