From 7463f87cf1c3b8494a604976a8f818b07747b55e Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Fri, 7 Jul 2023 11:46:21 +0300 Subject: add compat getopt implementation, remove patches This adds a getopt implementation for compatibility where it is not available, removing a couple of regress patches. Note, this is a slightly modified copy from OpenBSD libc that doesn't expose getopt_long, which has dependency conflicts with Windows system headers and isn't needed anyway. --- patches/bn_isqrt.c.patch | 18 ------------------ patches/handshake_table.c.patch | 18 ------------------ 2 files changed, 36 deletions(-) delete mode 100644 patches/bn_isqrt.c.patch delete mode 100644 patches/handshake_table.c.patch (limited to 'patches') diff --git a/patches/bn_isqrt.c.patch b/patches/bn_isqrt.c.patch deleted file mode 100644 index 5f2a568..0000000 --- a/patches/bn_isqrt.c.patch +++ /dev/null @@ -1,18 +0,0 @@ ---- tests/bn_isqrt.c.orig Fri Dec 9 11:05:26 2022 -+++ tests/bn_isqrt.c Fri Dec 9 11:12:37 2022 -@@ -306,6 +306,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': -@@ -316,6 +317,7 @@ main(int argc, char *argv[]) - break; - } - } -+#endif - - if (print) - return check_tables(1); diff --git a/patches/handshake_table.c.patch b/patches/handshake_table.c.patch deleted file mode 100644 index f3a4004..0000000 --- a/patches/handshake_table.c.patch +++ /dev/null @@ -1,18 +0,0 @@ ---- tests/handshake_table.c.orig Tue Mar 15 11:37:03 2022 -+++ tests/handshake_table.c Mon Mar 21 05:26:15 2022 -@@ -518,6 +518,7 @@ - unsigned int depth = 0; - int ch, graphviz = 0, print = 0; - -+#ifndef _MSC_VER - while ((ch = getopt(argc, argv, "Cg")) != -1) { - switch (ch) { - case 'C': -@@ -535,6 +536,7 @@ - - if (argc != 0) - usage(); -+#endif - - if (graphviz && print) - usage(); -- cgit v1.2.3-55-g6feb