aboutsummaryrefslogtreecommitdiff
path: root/patches/bn_div.c.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/bn_div.c.patch')
-rw-r--r--patches/bn_div.c.patch11
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>