From 4d25cc4bc58ec402e4c97ab1039b10c4fcaa168f Mon Sep 17 00:00:00 2001 From: Tony Nicholson Date: Thu, 25 Feb 2016 10:03:49 +1100 Subject: [PATCH] slirp_glue: cleanup compiler warning of duplicate definition of O_BINARY under Cygwin --- slirp_glue/qemu/qemu-common.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/slirp_glue/qemu/qemu-common.h b/slirp_glue/qemu/qemu-common.h index ed5b7c96..e86c1a60 100644 --- a/slirp_glue/qemu/qemu-common.h +++ b/slirp_glue/qemu/qemu-common.h @@ -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