pkgsrc/shells/es/patches/patch-ai
joerg 1aea045b09 Fix build on amd64. I'm taking the aggressive approach of using va_copy
here, the #if can be easily modified for those platforms missing it.
2008-09-19 20:02:23 +00:00

16 lines
404 B
Text

$NetBSD: patch-ai,v 1.1 2008/09/19 20:02:23 joerg Exp $
--- str.c.orig 2008-09-19 21:59:39.000000000 +0200
+++ str.c
@@ -21,7 +21,11 @@ extern char *strv(const char *fmt, va_li
gcdisable();
buf = openbuffer(0);
format.u.p = buf;
+#if 1
+ va_copy(format.args, args);
+#else
format.args = args;
+#endif
format.buf = buf->str;
format.bufbegin = buf->str;
format.bufend = buf->str + buf->len;