win32: Add define for missing EPROTONOSUPPORT
authorStefan Weil <weil@mail.berlios.de>
Thu, 24 Jun 2010 20:41:33 +0000 (22:41 +0200)
committerBlue Swirl <blauwirbel@gmail.com>
Sun, 27 Jun 2010 16:09:56 +0000 (19:09 +0300)
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>
qemu-os-win32.h

index 6323f7f..2ff9f45 100644 (file)
@@ -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