Skip to contentSkip to conversation

osdep.h: include sys/types.h for ssize_t definition

PATCH Applied Igor Mitsyanko 3 participants 3 messages May 10, 2013 – May 12, 2013

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 osdep.h: include sys/types.h for ssize_t definition

sys/types.h is taken out from "ifdef __OpenBSD__" guard. It should be safe for other systems, according to following survey:
http://hacks.owlfolio.org/header-survey/

This fixes build for CONFIG_IOVEC-less systems (mingw).

---
 include/qemu/osdep.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/qemu/osdep.h +1 -1
index 42545bc..3bcd4ab 100644
@@ -5,8 +5,8 @@
 #include <stdarg.h>
 #include <stddef.h>
 #include <stdbool.h>
-#ifdef __OpenBSD__
 #include <sys/types.h>
+#ifdef __OpenBSD__
 #include <sys/signal.h>
 #endif
 
Signature · 1 line
1.8.1.4
#1 lore raw
Quoted 5 lines · Igor Mitsyanko

sys/types.h is taken out from "ifdef __OpenBSD__" guard. It should be safe for other systems, according to following survey:
http://hacks.owlfolio.org/header-survey/

This fixes build for CONFIG_IOVEC-less systems (mingw).

Thanks, applied to the trivial patches queue.

/mjt

#2 lore raw
In reply to Igor Mitsyanko

Am 10.05.2013 21:58, schrieb Igor Mitsyanko:

Quoted 16 lines

sys/types.h is taken out from "ifdef __OpenBSD__" guard. It should be safe for other systems, according to following survey:
http://hacks.owlfolio.org/header-survey/

This fixes build for CONFIG_IOVEC-less systems (mingw).

---
 include/qemu/osdep.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/qemu/osdep.h +0 -0
index 42545bc..3bcd4ab 100644

include/qemu/osdep.h line 11

Quoted 8 lines
include/qemu/osdep.h +1 -1
@@ -5,8 +5,8 @@
 #include <stdarg.h>
 #include <stddef.h>
 #include <stdbool.h>
-#ifdef __OpenBSD__
 #include <sys/types.h>
+#ifdef __OpenBSD__
 #include <sys/signal.h>
 #endif

Either this patch or http://patchwork.ozlabs.org/patch/243151/
is needed for QEMU 1.5 to fix compilation with MinGW.

Regards,
Stefan Weil