diff options
author | Brent Cook <busterb@gmail.com> | 2019-01-20 19:58:04 -0600 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2019-01-20 20:03:37 -0600 |
commit | 8475a5876d3ecbbfd2a590ab6ea81e332dfb2773 (patch) | |
tree | b5c388b408d1eaca80f7f6efa544c67ac86563b3 /patches/bn_div.c.patch | |
parent | 72bb1ed61834c37819c9d4fce516a0360ca0095e (diff) | |
download | portable-8475a5876d3ecbbfd2a590ab6ea81e332dfb2773.tar.gz portable-8475a5876d3ecbbfd2a590ab6ea81e332dfb2773.tar.bz2 portable-8475a5876d3ecbbfd2a590ab6ea81e332dfb2773.zip |
add _LP64 checks
Diffstat (limited to 'patches/bn_div.c.patch')
-rw-r--r-- | patches/bn_div.c.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/patches/bn_div.c.patch b/patches/bn_div.c.patch new file mode 100644 index 0000000..9989e8d --- /dev/null +++ b/patches/bn_div.c.patch | |||
@@ -0,0 +1,11 @@ | |||
1 | --- openbsd/src/lib/libcrypto/bn/bn_div.c 2018-08-03 22:40:06.596555542 -0500 | ||
2 | +++ crypto/bn/bn_div.c 2019-01-20 19:26:37.891450640 -0600 | ||
3 | @@ -89,7 +89,7 @@ | ||
4 | q; \ | ||
5 | }) | ||
6 | # define REMAINDER_IS_ALREADY_CALCULATED | ||
7 | -# elif defined(__x86_64) | ||
8 | +# elif defined(__x86_64) && defined(_LP64) | ||
9 | /* | ||
10 | * Same story here, but it's 128-bit by 64-bit division. Wow! | ||
11 | * <appro@fy.chalmers.se> | ||