summaryrefslogtreecommitdiffstats
path: root/Python/modsupport.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/modsupport.c')
-rw-r--r--Python/modsupport.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Python/modsupport.c b/Python/modsupport.c
index f4f8298..1f8ef07 100644
--- a/Python/modsupport.c
+++ b/Python/modsupport.c
@@ -418,8 +418,12 @@ Py_VaBuildValue(char *format, va_list va)
#ifdef VA_LIST_IS_ARRAY
memcpy(lva, va, sizeof(va_list));
#else
+#ifdef __va_copy
+ __va_copy(lva, va);
+#else
lva = va;
#endif
+#endif
if (n < 0)
return NULL;