From 5635efc388119e1c1cc03d19e88596c2b1a75bef Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Thu, 24 Jun 2010 22:41:33 +0200 Subject: [PATCH] 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 Signed-off-by: Blue Swirl --- qemu-os-win32.h | 4 ++++ 1 file changed, 4 insertions(+) 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