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/bn_isqrt.c.patch | |
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/bn_isqrt.c.patch')
-rw-r--r-- | patches/bn_isqrt.c.patch | 18 |
1 files changed, 0 insertions, 18 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); | ||