aboutsummaryrefslogtreecommitdiff
path: root/qemu-os-win32.h
diff options
context:
space:
mode:
authorStefan Weil <weil@mail.berlios.de>2010-06-24 22:41:33 +0200
committerBlue Swirl <blauwirbel@gmail.com>2010-06-27 19:09:56 +0300
commit5635efc388119e1c1cc03d19e88596c2b1a75bef (patch)
tree88998691024394a643403be5976f30c5674a0c9f /qemu-os-win32.h
parent924ef7ee640bd32b0c7dcde3bbfcf41768491a98 (diff)
win32: Add define for missing EPROTONOSUPPORT
mingw32 does not define EPROTONOSUPPORT (which is used by migration.c and maybe future patches), so add a definition which uses a supported errno value. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'qemu-os-win32.h')
-rw-r--r--qemu-os-win32.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/qemu-os-win32.h b/qemu-os-win32.h
index 6323f7f1a6..2ff9f45a6c 100644
--- a/qemu-os-win32.h
+++ b/qemu-os-win32.h
@@ -49,4 +49,8 @@ static inline void os_setup_post(void) {}
static inline void os_set_line_buffering(void) {}
static inline void os_set_proc_name(const char *dummy) {}
+#if !defined(EPROTONOSUPPORT)
+# define EPROTONOSUPPORT EINVAL
+#endif
+
#endif