$OpenBSD: patch-Objects_stringobject_c,v 1.2 2002/05/11 21:35:13 matt Exp $

        This has been submitted to the Python team as part of patch
        554716.

--- Objects/stringobject.c.orig	Thu Mar 14 22:01:00 2002
+++ Objects/stringobject.c	Thu Mar 14 22:01:54 2002
@@ -175,7 +175,11 @@ PyString_FromFormatV(const char *format,
 #ifdef VA_LIST_IS_ARRAY
 	memcpy(count, vargs, sizeof(va_list));
 #else
+#ifdef  __va_copy
+	__va_copy(count, vargs);
+#else
 	count = vargs;
+#endif
 #endif
 	/* step 1: figure out how large a buffer we need */
 	for (f = format; *f; f++) {
