aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Buehler <tb@openbsd.org>2022-08-15 10:43:49 +0200
committerTheo Buehler <tb@openbsd.org>2022-08-15 10:43:49 +0200
commit08895e84976efd5f63bc515856efe43aad5abffb (patch)
treecf81b8be9094653cea8ff66e76acea65e88d98f9
parent8114acb6072d7798de2cb38be69b27160ce39809 (diff)
downloadportable-08895e84976efd5f63bc515856efe43aad5abffb.tar.gz
portable-08895e84976efd5f63bc515856efe43aad5abffb.tar.bz2
portable-08895e84976efd5f63bc515856efe43aad5abffb.zip
MSC doesn't have getopt
-rw-r--r--patches/bn_isqrt.c.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/patches/bn_isqrt.c.patch b/patches/bn_isqrt.c.patch
new file mode 100644
index 0000000..bf205a3
--- /dev/null
+++ b/patches/bn_isqrt.c.patch
@@ -0,0 +1,18 @@
1--- tests/bn_isqrt.c.orig Mon Aug 15 10:40:29 2022
2+++ tests/bn_isqrt.c Mon Aug 15 10:41:46 2022
3@@ -304,6 +304,7 @@ main(int argc, char *argv[])
4 int ch;
5 int failed = 0, print = 0;
6
7+#ifndef _MSC_VER
8 while ((ch = getopt(argc, argv, "C")) != -1) {
9 switch (ch) {
10 case 'C':
11@@ -314,6 +315,7 @@ main(int argc, char *argv[])
12 break;
13 }
14 }
15+#endif
16
17 if (print)
18 return check_tables(1);