Patchwork win32: Add define for missing EPROTONOSUPPORT

login
register
mail settings
Submitter Stefan Weil
Date June 24, 2010, 8:41 p.m.
Message ID <1277412093-4970-1-git-send-email-weil@mail.berlios.de>
Download mbox | patch
Permalink /patch/56836/
State New
Headers show

Comments

Stefan Weil - June 24, 2010, 8:41 p.m.
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>
---
 qemu-os-win32.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
Blue Swirl - June 27, 2010, 8:25 p.m.
Thanks, applied.

On Thu, Jun 24, 2010 at 8:41 PM, Stefan Weil <weil@mail.berlios.de> wrote:
> 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>
> ---
>  qemu-os-win32.h |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/qemu-os-win32.h b/qemu-os-win32.h
> index 6323f7f..2ff9f45 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
> --
> 1.7.1
>
>
>

Patch

diff --git a/qemu-os-win32.h b/qemu-os-win32.h
index 6323f7f..2ff9f45 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