Skip to contentSkip to conversation

Fix compilation for non-POSIX system (w64)

PATCH In review Stefan Weil 2 participants 2 messages Jun 23, 2011 – Jun 24, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix compilation for non-POSIX system (w64)

compatfd.h is only needed with CONFIG_POSIX.
Compilation fails in compatfd.h for at least one non-POSIX systems (w64).

---
 cpus.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
cpus.c +2 -0
index 0699f37..8501254 100644
@@ -34,7 +34,9 @@
 
 #include "qemu-thread.h"
 #include "cpus.h"
+#ifdef CONFIG_POSIX
 #include "compatfd.h"
+#endif
 
 #ifdef SIGRTMIN
 #define SIG_IPI (SIGRTMIN+4)
Signature · 1 line
1.7.2.5
#1 lore raw
Quoted 7 lines · Stefan Weil

compatfd.h is only needed with CONFIG_POSIX.
Compilation fails in compatfd.h for at least one non-POSIX systems (w64).

---
 cpus.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Thanks! Jan's patch which is similar but uses #ifndef _WIN32 is already queued. The cpus.c qemu_signalfd() usage is #ifndef _WIN32, so I think there's a logic to keeping that patch.

Stefan