From 08895e84976efd5f63bc515856efe43aad5abffb Mon Sep 17 00:00:00 2001 From: Theo Buehler Date: Mon, 15 Aug 2022 10:43:49 +0200 Subject: MSC doesn't have getopt --- patches/bn_isqrt.c.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 patches/bn_isqrt.c.patch 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 @@ +--- tests/bn_isqrt.c.orig Mon Aug 15 10:40:29 2022 ++++ tests/bn_isqrt.c Mon Aug 15 10:41:46 2022 +@@ -304,6 +304,7 @@ main(int argc, char *argv[]) + int ch; + int failed = 0, print = 0; + ++#ifndef _MSC_VER + while ((ch = getopt(argc, argv, "C")) != -1) { + switch (ch) { + case 'C': +@@ -314,6 +315,7 @@ main(int argc, char *argv[]) + break; + } + } ++#endif + + if (print) + return check_tables(1); -- cgit v1.2.3-55-g6feb