From 8475a5876d3ecbbfd2a590ab6ea81e332dfb2773 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Sun, 20 Jan 2019 19:58:04 -0600 Subject: add _LP64 checks --- patches/bn_div.c.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 patches/bn_div.c.patch (limited to 'patches/bn_div.c.patch') 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 @@ +--- openbsd/src/lib/libcrypto/bn/bn_div.c 2018-08-03 22:40:06.596555542 -0500 ++++ crypto/bn/bn_div.c 2019-01-20 19:26:37.891450640 -0600 +@@ -89,7 +89,7 @@ + q; \ + }) + # define REMAINDER_IS_ALREADY_CALCULATED +-# elif defined(__x86_64) ++# elif defined(__x86_64) && defined(_LP64) + /* + * Same story here, but it's 128-bit by 64-bit division. Wow! + * -- cgit v1.2.3-55-g6feb