diff options
author | tron <tron@pkgsrc.org> | 1999-03-04 09:25:44 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 1999-03-04 09:25:44 +0000 |
commit | 7c13e6dd870e69553d779f5b5e1b8ee213d2638e (patch) | |
tree | 0487952fb902d4092f7843c63518ebae11725fe5 | |
parent | 63e0edcc0547cd1a9d8668d57e8e70de6ed21911 (diff) | |
download | pkgsrc-7c13e6dd870e69553d779f5b5e1b8ee213d2638e.tar.gz |
Patch to get the included "gmp" library working again on "arm32" port
published by Richard Earnshaw on "port-arm32@netbsd.org".
-rw-r--r-- | security/ssh/patches/patch-an | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/security/ssh/patches/patch-an b/security/ssh/patches/patch-an new file mode 100644 index 00000000000..26090dea5f6 --- /dev/null +++ b/security/ssh/patches/patch-an @@ -0,0 +1,43 @@ +$NetBSD: patch-an,v 1.1 1999/03/04 09:25:44 tron Exp $ + +--- gmp-2.0.2-ssh-2/gmp-impl.h.orig Fri Mar 27 18:06:09 1998 ++++ gmp-2.0.2-ssh-2/gmp-impl.h Thu Mar 4 10:20:02 1999 +@@ -281,7 +281,6 @@ + + #if SIZEOF_INT >= 4 /* otherwise fails on 16-bit machines */ + #if defined (__alpha) \ +- || (defined (__arm__) && defined (__ARMWEL__)) \ + || defined (__clipper__) \ + || defined (__cris) \ + || defined (__i386__) \ +@@ -304,7 +303,7 @@ + }; + #else /* Need this as an #else since the tests aren't made exclusive. */ + #if defined (__a29k__) || defined (_AM29K) \ +- || defined (__arm__) \ ++ || (defined (__arm__) && defined (__ARMEB__)) \ + || (defined (__convex__) && defined (_IEEE_FLOAT_)) \ + || defined (__i370__) || defined (__mvs__) \ + || defined (__mc68000__) || defined (__mc68020__) || defined (__NeXT__)\ +@@ -330,6 +329,21 @@ + } s; + double d; + }; ++#define _GMP_IEEE_FLOATS 1 ++#else ++#if defined (__arm__) ++union ieee_double_extract ++{ ++ struct ++ { ++ unsigned int manh:20; ++ unsigned int exp:11; ++ unsigned int sig:1; ++ unsigned int manl:32; ++ } s; ++ double d; ++}; ++#endif + #endif + #endif + #endif /* SIZEOF_INT >= 4 */ |