mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-01 05:45:45 +00:00
Fix build on amd64 by using va_copy
This commit is contained in:
parent
287aeadbe4
commit
cbd50e2b81
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=106932
@ -25,10 +25,4 @@ USE_LIBTOOL_VER= 15
|
||||
INSTALLS_SHLIB= yes
|
||||
MAN3+= sa.3
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${ARCH} == "amd64"
|
||||
BROKEN= "Does not compile on amd64"
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
14
net/ossp-sa/files/patch-ts.c
Normal file
14
net/ossp-sa/files/patch-ts.c
Normal file
@ -0,0 +1,14 @@
|
||||
--- ts.c.orig Tue Apr 13 20:23:45 2004
|
||||
+++ ts.c Tue Apr 13 20:24:18 2004
|
||||
@@ -206,7 +206,11 @@
|
||||
|
||||
if (format == NULL)
|
||||
return NULL;
|
||||
+#ifdef __amd64__
|
||||
+ va_copy(ap2,ap);
|
||||
+#else
|
||||
ap2 = ap;
|
||||
+#endif
|
||||
if ((n = ts_suite_mvxprintf(NULL, 0, format, ap)) == -1)
|
||||
return NULL;
|
||||
if ((buffer = (char *)malloc(n+1)) == NULL)
|
Loading…
Reference in New Issue
Block a user