summarylogtreecommitdiffstats
path: root/21-fix-getopt-guard.patch
diff options
context:
space:
mode:
Diffstat (limited to '21-fix-getopt-guard.patch')
-rw-r--r--21-fix-getopt-guard.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/21-fix-getopt-guard.patch b/21-fix-getopt-guard.patch
new file mode 100644
index 000000000000..ff7fc3d5bb31
--- /dev/null
+++ b/21-fix-getopt-guard.patch
@@ -0,0 +1,18 @@
+--- cyrus-sasl-2.1.27/lib/saslutil.c.orig 2020-01-21 13:02:37.317323500 +0300
++++ cyrus-sasl-2.1.27/lib/saslutil.c 2020-01-21 13:03:14.353045400 +0300
+@@ -775,6 +775,7 @@
+ return (int)*pArgString; /* return the letter that matched */
+ }
+ }
++#endif /* WIN32 && !__MINGW64_VERSION_MAJOR */
+
+ #ifndef PASSWORD_MAX
+ # define PASSWORD_MAX 255
+@@ -798,7 +799,3 @@
+ fprintf(stderr, "\n"); (void) fflush(stderr);
+ return(pbuf);
+ }
+-
+-
+-
+-#endif /* WIN32 */