2013-09-26 17:14:40 +02:00

20 lines
398 B
Plaintext

$NetBSD: patch-ah,v 1.1 2003/03/08 03:15:51 jmc Exp $
--- windows/WSprintf.c.orig Fri Apr 5 20:42:48 2002
+++ windows/WSprintf.c Fri Apr 5 20:43:47 2002
@@ -56,6 +56,14 @@
int WINAPI
wvsprintf(LPSTR buf, LPCSTR fmt, void *args)
{
+#ifdef __NetBSD__
+#ifdef __powerpc__
+ va_list *ap = args;
+
+ vsprintf(buf,fmt,*ap);
+#endif
+#else
vsprintf(buf,fmt,args);
+#endif
return strlen(buf);
}