slirp_glue: cleanup compiler warning of duplicate definition of O_BINARY under Cygwin

This commit is contained in:
Tony Nicholson 2016-02-25 10:03:49 +11:00
parent 9d979360b4
commit 4d25cc4bc5

View file

@ -18,6 +18,10 @@
#include "glib.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. */
#if UINTPTR_MAX == UINT32_MAX
# define HOST_LONG_BITS 32