summaryrefslogtreecommitdiff
path: root/main/php.h
diff options
context:
space:
mode:
Diffstat (limited to 'main/php.h')
-rw-r--r--main/php.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/main/php.h b/main/php.h
index f2fb416231..3ba1317966 100644
--- a/main/php.h
+++ b/main/php.h
@@ -173,6 +173,13 @@ typedef unsigned int socklen_t;
# endif
#endif
+#ifndef va_copy
+# ifdef __va_copy
+# define va_copy(ap1, ap2) __va_copy((ap1), (ap2))
+# else
+# define va_copy(ap1, ap2) memcpy((&ap1), (&ap2), sizeof(va_list))
+# endif
+#endif
#include "zend_hash.h"
#include "php3_compat.h"