summaryrefslogtreecommitdiffstats
path: root/devel/ossp-cfg
diff options
context:
space:
mode:
authorarved <arved@FreeBSD.org>2004-04-13 17:01:33 +0000
committerarved <arved@FreeBSD.org>2004-04-13 17:01:33 +0000
commitf4c621cf10157d4d903577d48f26b392f4f6c52c (patch)
treee94b9267538eeab097c13f32ced292ee1d8b3213 /devel/ossp-cfg
parentd1960def0fc3dbe1633967150ca14d3c02b5c57c (diff)
downloadFreeBSD-ports-f4c621cf10157d4d903577d48f26b392f4f6c52c.zip
FreeBSD-ports-f4c621cf10157d4d903577d48f26b392f4f6c52c.tar.gz
Attempt to fix build on amd64 by using va_copy
Diffstat (limited to 'devel/ossp-cfg')
-rw-r--r--devel/ossp-cfg/Makefile4
-rw-r--r--devel/ossp-cfg/files/patch-cfg_fmt.c15
2 files changed, 15 insertions, 4 deletions
diff --git a/devel/ossp-cfg/Makefile b/devel/ossp-cfg/Makefile
index c5e013e..7bc73d8 100644
--- a/devel/ossp-cfg/Makefile
+++ b/devel/ossp-cfg/Makefile
@@ -26,9 +26,5 @@ 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-cfg/files/patch-cfg_fmt.c b/devel/ossp-cfg/files/patch-cfg_fmt.c
new file mode 100644
index 0000000..e0f84d3
--- /dev/null
+++ b/devel/ossp-cfg/files/patch-cfg_fmt.c
@@ -0,0 +1,15 @@
+--- cfg_fmt.c.orig Tue Apr 13 18:52:54 2004
++++ cfg_fmt.c Tue Apr 13 18:53:51 2004
+@@ -1131,8 +1131,11 @@
+ va_list apbak;
+ char *s;
+ int rv;
+-
++#ifdef __amd64__
++ va_copy(apbak, ap);
++#else
+ apbak = ap;
++#endif
+ if ((rv = cfg_fmt_vsprintf(NULL, -1, fmt, ap)) == -1)
+ return NULL;
+ if ((s = malloc(rv+1)) == NULL)
OpenPOWER on IntegriCloud