summaryrefslogtreecommitdiffstats
path: root/mail/pgp4pine
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-03-07 18:50:51 +0000
committerkrion <krion@FreeBSD.org>2004-03-07 18:50:51 +0000
commitfc3d67bedb4f6587df403b9be556d2bc7e26b6dc (patch)
treea3efb24338d401501b1ca21b8a381ca07d85ac74 /mail/pgp4pine
parent56bb2e81aec592564dc876a27122da35b3368938 (diff)
downloadFreeBSD-ports-fc3d67bedb4f6587df403b9be556d2bc7e26b6dc.zip
FreeBSD-ports-fc3d67bedb4f6587df403b9be556d2bc7e26b6dc.tar.gz
- Fix build on sparc64
PR: ports/63884 Submitted by: maintainer
Diffstat (limited to 'mail/pgp4pine')
-rw-r--r--mail/pgp4pine/Makefile4
-rw-r--r--mail/pgp4pine/files/patch-md5.c13
2 files changed, 13 insertions, 4 deletions
diff --git a/mail/pgp4pine/Makefile b/mail/pgp4pine/Makefile
index 162b4bf..e618b3b 100644
--- a/mail/pgp4pine/Makefile
+++ b/mail/pgp4pine/Makefile
@@ -36,10 +36,6 @@ SCRIPTDIR= ${SAMPLEDIR}
.include <bsd.port.pre.mk>
-.if ${ARCH} == "sparc64"
-BROKEN= "Does not compile on sparc64"
-.endif
-
# Post-patch
#
diff --git a/mail/pgp4pine/files/patch-md5.c b/mail/pgp4pine/files/patch-md5.c
new file mode 100644
index 0000000..6f502f4
--- /dev/null
+++ b/mail/pgp4pine/files/patch-md5.c
@@ -0,0 +1,13 @@
+--- pgp4pine/md5.c.orig Sun Mar 7 13:55:00 2004
++++ pgp4pine/md5.c Sun Mar 7 13:55:02 2004
+@@ -288,8 +288,8 @@
+
+ p = hd->buf;
+ #ifdef WORDS_BIGENDIAN
+-#define X(a) do { *p++ = hd->##a ; *p++ = hd->##a >> 8; \
+- *p++ = hd->##a >> 16; *p++ = hd->##a >> 24; } while(0)
++#define X(a) do { *p++ = (*hd).a ; *p++ = (*hd).a >> 8; \
++ *p++ = (*hd).a >> 16; *p++ = (*hd).a >> 24; } while(0)
+ #else /* little endian */
+ /*#define X(a) do { *(u_int32_t*)p = hd->##a ; p += 4; } while(0)*/
+ /* Unixware's cpp doesn't like the above construct so we do it his way:
OpenPOWER on IntegriCloud