[libvirt PATCH v2 52/56] src: add define of ENOMSG for MinGW

Daniel P. Berrangé berrange at redhat.com
Tue Jan 28 13:11:33 UTC 2020


MinGW lacks ENOMSG until version 6.0.0 (Fedora 31).

Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
---
 src/internal.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/internal.h b/src/internal.h
index 8c9322ec1e..96a43113cb 100644
--- a/src/internal.h
+++ b/src/internal.h
@@ -482,3 +482,9 @@ enum {
 #ifndef ENODATA
 # define ENODATA EIO
 #endif
+
+#ifdef WIN32
+# ifndef ENOMSG
+#  define ENOMSG 122
+# endif
+#endif
-- 
2.24.1




More information about the libvir-list mailing list