diff options
author | Brent Cook <busterb@gmail.com> | 2023-07-07 11:46:21 +0300 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2023-07-07 12:11:20 +0300 |
commit | 7463f87cf1c3b8494a604976a8f818b07747b55e (patch) | |
tree | b650ee1a218d8fdaf5d7794f4b0f2902ca080ce4 /patches | |
parent | e06ce19f9531240fa4e754197850184dbcd445fc (diff) | |
download | portable-7463f87cf1c3b8494a604976a8f818b07747b55e.tar.gz portable-7463f87cf1c3b8494a604976a8f818b07747b55e.tar.bz2 portable-7463f87cf1c3b8494a604976a8f818b07747b55e.zip |
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.
Diffstat (limited to 'patches')
-rw-r--r-- | patches/bn_isqrt.c.patch | 18 | ||||
-rw-r--r-- | patches/handshake_table.c.patch | 18 |
2 files changed, 0 insertions, 36 deletions
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 @@ | |||
1 | --- tests/bn_isqrt.c.orig Fri Dec 9 11:05:26 2022 | ||
2 | +++ tests/bn_isqrt.c Fri Dec 9 11:12:37 2022 | ||
3 | @@ -306,6 +306,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 | @@ -316,6 +317,7 @@ main(int argc, char *argv[]) | ||
12 | break; | ||
13 | } | ||
14 | } | ||
15 | +#endif | ||
16 | |||
17 | if (print) | ||
18 | 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 @@ | |||
1 | --- tests/handshake_table.c.orig Tue Mar 15 11:37:03 2022 | ||
2 | +++ tests/handshake_table.c Mon Mar 21 05:26:15 2022 | ||
3 | @@ -518,6 +518,7 @@ | ||
4 | unsigned int depth = 0; | ||
5 | int ch, graphviz = 0, print = 0; | ||
6 | |||
7 | +#ifndef _MSC_VER | ||
8 | while ((ch = getopt(argc, argv, "Cg")) != -1) { | ||
9 | switch (ch) { | ||
10 | case 'C': | ||
11 | @@ -535,6 +536,7 @@ | ||
12 | |||
13 | if (argc != 0) | ||
14 | usage(); | ||
15 | +#endif | ||
16 | |||
17 | if (graphviz && print) | ||
18 | usage(); | ||