diff --git a/Zend/zend_ptr_stack.c b/Zend/zend_ptr_stack.c index 80c77e11d73..acecae477e3 100644 --- a/Zend/zend_ptr_stack.c +++ b/Zend/zend_ptr_stack.c @@ -17,8 +17,8 @@ +----------------------------------------------------------------------+ */ -#include "zend.h" #include "zend_ptr_stack.h" + #include ZEND_API void zend_ptr_stack_init_ex(zend_ptr_stack *stack, bool persistent) diff --git a/Zend/zend_ptr_stack.h b/Zend/zend_ptr_stack.h index 1126da5800d..b1dc6c29af3 100644 --- a/Zend/zend_ptr_stack.h +++ b/Zend/zend_ptr_stack.h @@ -20,6 +20,9 @@ #ifndef ZEND_PTR_STACK_H #define ZEND_PTR_STACK_H +#include "zend_alloc.h" // for safe_perealloc() +#include "zend_portability.h" // for BEGIN_EXTERN_C + typedef struct _zend_ptr_stack { int top, max; void **elements;