MinGW lacks ENOMSG until version 6.0.0 (Fedora 31).
Signed-off-by: Daniel P. Berrangé <berrange(a)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