1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- Fix build on sparc64

PR:		ports/63884
Submitted by:	maintainer
This commit is contained in:
Kirill Ponomarev 2004-03-07 18:50:51 +00:00
parent 4a462d4c38
commit f7bf813333
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=103218
2 changed files with 13 additions and 4 deletions

View File

@ -36,10 +36,6 @@ SCRIPTDIR= ${SAMPLEDIR}
.include <bsd.port.pre.mk>
.if ${ARCH} == "sparc64"
BROKEN= "Does not compile on sparc64"
.endif
# Post-patch
#

View File

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