qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 08/20] w64: Undefine macro SYS_OPEN (fixes a compile


From: Stefan Weil
Subject: [Qemu-devel] [PATCH 08/20] w64: Undefine macro SYS_OPEN (fixes a compiler warning)
Date: Sun, 15 Apr 2012 16:13:41 +0200

This could also be done in arm-semi.c, but doing it here keeps more
w64 related code in one place.

Signed-off-by: Stefan Weil <address@hidden>
---
 qemu-os-win32.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/qemu-os-win32.h b/qemu-os-win32.h
index 753679b..99e8423 100644
--- a/qemu-os-win32.h
+++ b/qemu-os-win32.h
@@ -65,6 +65,10 @@
 # define setjmp(env) _setjmp(env, NULL)
 #endif
 
+/* MinGW-w64 defines SYS_OPEN in stdio.h,
+ * but arm-semi.c uses a different definition. */
+#undef SYS_OPEN
+
 /* Declaration of ffs() is missing in MinGW's strings.h. */
 int ffs(int i);
 
-- 
1.7.0.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]