diff options
author | Tilman Keskinoz <arved@FreeBSD.org> | 2004-04-13 17:42:20 +0000 |
---|---|---|
committer | Tilman Keskinoz <arved@FreeBSD.org> | 2004-04-13 17:42:20 +0000 |
commit | 32f1561a074937e2cc318335b4ee74c63458867d (patch) | |
tree | e28010b780c13f90c0be0301f64eceeaa65cef05 /devel/str | |
parent | 76ffe3c3d9eba3de404455bb360455db9ae15019 (diff) | |
download | ports-32f1561a074937e2cc318335b4ee74c63458867d.tar.gz ports-32f1561a074937e2cc318335b4ee74c63458867d.zip |
Notes
Diffstat (limited to 'devel/str')
-rw-r--r-- | devel/str/Makefile | 4 | ||||
-rw-r--r-- | devel/str/files/patch-str_basic.c | 14 | ||||
-rw-r--r-- | devel/str/files/patch-ts.c | 14 |
3 files changed, 28 insertions, 4 deletions
diff --git a/devel/str/Makefile b/devel/str/Makefile index c85032387cfa..e302d170af14 100644 --- a/devel/str/Makefile +++ b/devel/str/Makefile @@ -22,10 +22,6 @@ MAN3= str.3 .include <bsd.port.pre.mk> -.if ${ARCH} == "amd64" -BROKEN= "Does not compile on amd64" -.endif - post-build: @${ECHO_MSG} "===> Use 'make test' to run a quick test suite." diff --git a/devel/str/files/patch-str_basic.c b/devel/str/files/patch-str_basic.c new file mode 100644 index 000000000000..88d8b0c8e584 --- /dev/null +++ b/devel/str/files/patch-str_basic.c @@ -0,0 +1,14 @@ +--- str_basic.c.orig Tue Apr 13 19:28:46 2004 ++++ str_basic.c Tue Apr 13 19:29:51 2004 +@@ -133,7 +133,11 @@ + return NULL; + + /* determine required target string length */ ++#ifdef __amd64__ ++ va_copy(ap_safe, ap); ++#else + ap_safe = ap; ++#endif + n = str_len(s); + while ((cp = va_arg(ap, char *)) != NULL) + n += str_len(cp); diff --git a/devel/str/files/patch-ts.c b/devel/str/files/patch-ts.c new file mode 100644 index 000000000000..8f9695746cf9 --- /dev/null +++ b/devel/str/files/patch-ts.c @@ -0,0 +1,14 @@ +--- ts.c.orig Tue Apr 13 19:32:20 2004 ++++ ts.c Tue Apr 13 19:32:46 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) |