Skip to contentSkip to conversation

w64: Fix problem with missing sigset_t

PATCH Applied Stefan Weil 1 participant 1 message Jan 21, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 3/3 w64: Fix problem with missing sigset_t

MinGW-w64 does not declare sigset_t which is used in compatfd.h.

sigset_t is not needed for compilations without CONFIG_IOTHREAD, so it is possible to avoid the problem by using a conditional include.

---
 cpus.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
cpus.c +2 -0
index 329acb0..db145c6 100644
@@ -33,7 +33,9 @@
 #include "exec-all.h"
 
 #include "cpus.h"
+#ifdef CONFIG_IOTHREAD
 #include "compatfd.h"
+#endif
 #ifdef CONFIG_LINUX
 #include <sys/prctl.h>
 #endif
Signature · 1 line
1.7.2.3