summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2022-03-25 11:22:22 +0900
committerNIIBE Yutaka <gniibe@fsij.org>2022-03-25 11:22:22 +0900
commit8e67e8c3f21c798ff1f4862b0e7228825e6dd4f6 (patch)
treef9855104058d8ff1a8cd7c279c828742cb586c8b
parent32dad4e4135f0bdc436ed684da753d4b0cdb0ea1 (diff)
downloadlibgpg-error-8e67e8c3f21c798ff1f4862b0e7228825e6dd4f6.tar.gz
w32: Fix for MinGW which doesn't define EOPNOTSUPP.
* src/w32-estream.c: Add EOPNOTSUPP. -- GnuPG-bug-id: 5890 Reported-by: Eli Zaretskii Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
-rw-r--r--src/w32-estream.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/w32-estream.c b/src/w32-estream.c
index 5bb1bcf..e17ea2c 100644
--- a/src/w32-estream.c
+++ b/src/w32-estream.c
@@ -39,6 +39,10 @@
#include <io.h>
#include <windows.h>
+#ifndef EOPNOTSUPP
+# define EOPNOTSUPP ENOSYS
+#endif
+
/* Enable tracing. The value is the module name to be printed. */
/*#define ENABLE_TRACING "estream" */