summaryrefslogtreecommitdiff
path: root/mail/pgp4pine/files/patch-md5.c
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2004-03-07 18:50:51 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2004-03-07 18:50:51 +0000
commitf7bf81333394350031877647fcb94fe1b32f3fde (patch)
tree4ce41644b6dcf5324dd9f0c6a4fc36dc4ddbaf56 /mail/pgp4pine/files/patch-md5.c
parent- Update to 0.9 (diff)
- Fix build on sparc64
PR: ports/63884 Submitted by: maintainer
Notes
Notes: svn path=/head/; revision=103218
Diffstat (limited to '')
-rw-r--r--mail/pgp4pine/files/patch-md5.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/mail/pgp4pine/files/patch-md5.c b/mail/pgp4pine/files/patch-md5.c
new file mode 100644
index 000000000000..6f502f43888b
--- /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: