summaryrefslogtreecommitdiff
path: root/devel/ossp-l2
diff options
context:
space:
mode:
authorTilman Keskinoz <arved@FreeBSD.org>2004-04-13 17:09:32 +0000
committerTilman Keskinoz <arved@FreeBSD.org>2004-04-13 17:09:32 +0000
commit60b9c718e301ec2b3ea8360055f4a9a8c726fccb (patch)
tree46a83cf36e71f7352c87c53640afd1514f61ec8b /devel/ossp-l2
parentAttempt to fix build on amd64 by using va_copy (diff)
Attempt to fix build on amd64 by using va_copy
Notes
Notes: svn path=/head/; revision=106923
Diffstat (limited to 'devel/ossp-l2')
-rw-r--r--devel/ossp-l2/Makefile4
-rw-r--r--devel/ossp-l2/files/patch-l2_ut_format.c15
2 files changed, 15 insertions, 4 deletions
diff --git a/devel/ossp-l2/Makefile b/devel/ossp-l2/Makefile
index 0d5296ed2e54..3a814a91c245 100644
--- a/devel/ossp-l2/Makefile
+++ b/devel/ossp-l2/Makefile
@@ -23,10 +23,6 @@ INSTALLS_SHLIB= yes
.include <bsd.port.pre.mk>
-.if ${ARCH} == "amd64"
-BROKEN= "Does not compile on amd64"
-.endif
-
.include "${FILESDIR}/manpages.mk"
.include <bsd.port.post.mk>
diff --git a/devel/ossp-l2/files/patch-l2_ut_format.c b/devel/ossp-l2/files/patch-l2_ut_format.c
new file mode 100644
index 000000000000..54c515682ea2
--- /dev/null
+++ b/devel/ossp-l2/files/patch-l2_ut_format.c
@@ -0,0 +1,15 @@
+--- l2_ut_format.c.orig Tue Apr 13 19:04:15 2004
++++ l2_ut_format.c Tue Apr 13 19:05:59 2004
+@@ -1131,8 +1131,11 @@
+ va_list apbak;
+ char *s;
+ int rv;
+-
++#ifdef __amd64__
++ va_copy(apbak,ap);
++#else
+ apbak = ap;
++#endif
+ if ((rv = l2_util_vsprintf(NULL, -1, fmt, ap)) == -1)
+ return NULL;
+ if ((s = malloc(rv+1)) == NULL)