diff mbox

[1.1] declare ECANCELED on all machines

Message ID 1336634870-4257-1-git-send-email-pbonzini@redhat.com
State New
Headers show

Commit Message

Paolo Bonzini May 10, 2012, 7:27 a.m. UTC
This is needed in particular on Win32.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
        Kevin, this fixes the failure to build block branch on mingw.

 qemu-common.h |    3 +++
 1 file changed, 3 insertions(+)

Comments

Kevin Wolf May 10, 2012, 8:20 a.m. UTC | #1
Am 10.05.2012 09:27, schrieb Paolo Bonzini:
> This is needed in particular on Win32.
> 
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
>         Kevin, this fixes the failure to build block branch on mingw.
> 
>  qemu-common.h |    3 +++
>  1 file changed, 3 insertions(+)

Thanks, applied to the block branch for 1.1.

Kevin
diff mbox

Patch

diff --git a/qemu-common.h b/qemu-common.h
index 50f659a..cccfb42 100644
--- a/qemu-common.h
+++ b/qemu-common.h
@@ -61,6 +61,9 @@  typedef struct Monitor Monitor;
 #if !defined(ENOTSUP)
 #define ENOTSUP 4096
 #endif
+#if !defined(ECANCELED)
+#define ECANCELED 4097
+#endif
 #ifndef TIME_MAX
 #define TIME_MAX LONG_MAX
 #endif