freebsd-ports/mail/pgp4pine/files/patch-md5.c
Kirill Ponomarev f7bf813333 - Fix build on sparc64
PR:		ports/63884
Submitted by:	maintainer
2004-03-07 18:50:51 +00:00

13 lines
594 B
C

--- 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: