diff options
-rw-r--r-- | ext/standard/php_smart_str.h | 3 | ||||
-rw-r--r-- | ext/standard/php_smart_str_public.h | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/ext/standard/php_smart_str.h b/ext/standard/php_smart_str.h index fce92af818..a489fab0bc 100644 --- a/ext/standard/php_smart_str.h +++ b/ext/standard/php_smart_str.h @@ -21,6 +21,9 @@ #include "php_smart_str_public.h" +#include <stdlib.h> +#include <zend.h> + #define smart_str_0(x) ((x)->c[(x)->len] = '\0') #define smart_str_alloc(d,n,what) {\ diff --git a/ext/standard/php_smart_str_public.h b/ext/standard/php_smart_str_public.h index d561582369..4d448be312 100644 --- a/ext/standard/php_smart_str_public.h +++ b/ext/standard/php_smart_str_public.h @@ -19,6 +19,8 @@ #ifndef PHP_SMART_STR_PUBLIC_H #define PHP_SMART_STR_PUBLIC_H +#include <sys/types.h> + typedef struct { char *c; size_t len; |