va_list is defined in stdarg.h.
diff --git a/Include/pyerrors.h b/Include/pyerrors.h
index bfc36ae..3b2bfbc 100644
--- a/Include/pyerrors.h
+++ b/Include/pyerrors.h
@@ -116,6 +116,7 @@
 # define vsnprintf _vsnprintf
 #endif
 #ifndef HAVE_SNPRINTF
+#include <stdarg.h>
 extern DL_IMPORT(int) PyOS_snprintf(char *str, size_t size, const char  *format, ...);
 extern DL_IMPORT(int) PyOS_vsnprintf(char *str, size_t size, const char  *format, va_list va);
 #else