From a020008b8a9d74b210dd560e0e30c44b5a569f81 Mon Sep 17 00:00:00 2001 From: Tilman Keskinoz Date: Tue, 13 Apr 2004 16:37:53 +0000 Subject: Attempt to fix build by using va_copy on amd64 --- devel/ossp-al/Makefile | 4 ---- devel/ossp-al/files/patch-ts.c | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 devel/ossp-al/files/patch-ts.c (limited to 'devel') diff --git a/devel/ossp-al/Makefile b/devel/ossp-al/Makefile index f01320692683..0bb9dc560d90 100644 --- a/devel/ossp-al/Makefile +++ b/devel/ossp-al/Makefile @@ -28,9 +28,5 @@ INSTALLS_SHLIB= yes .include -.if ${ARCH} == "amd64" -BROKEN= "Does not compile on amd64" -.endif - .include "${FILESDIR}/manpages.mk" .include diff --git a/devel/ossp-al/files/patch-ts.c b/devel/ossp-al/files/patch-ts.c new file mode 100644 index 000000000000..b5ecaf43e8a2 --- /dev/null +++ b/devel/ossp-al/files/patch-ts.c @@ -0,0 +1,14 @@ +--- ts.c.orig Tue Apr 13 18:08:17 2004 ++++ ts.c Tue Apr 13 18:12:43 2004 +@@ -202,7 +202,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) -- cgit v1.2.3