Fix compilation for non-POSIX system (w64)
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).
Signed-off-by Stefan Weil <[email protected]>
--- cpus.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
cpus.c +2 -0
@@ -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
Quoted 7 lines · Stefan Weil
compatfd.his only needed withCONFIG_POSIX.
Compilation fails incompatfd.hfor at least one non-POSIX systems (w64).Signed-off-by Stefan Weil <[email protected]>--- 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