From 203fead2e06bc9c3ade855dbda9ad4288ae8f71b Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Mon, 21 Feb 2005 11:21:52 +0000 Subject: [PATCH] * curlbuf struct isn't needed any where else and breaks the php4 build - so no typedef --- php_http.h | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/php_http.h b/php_http.h index b2bdbe2..c4fc380 100644 --- a/php_http.h +++ b/php_http.h @@ -39,19 +39,6 @@ extern zend_module_entry http_module_entry; #else #ifdef HTTP_HAVE_CURL -typedef struct { - struct { - char *data; - size_t used; - size_t free; - } body; - struct { - char *data; - size_t used; - size_t free; - } hdrs; -} http_curlbuf; - typedef enum { HTTP_GET, HTTP_HEAD, @@ -185,7 +172,18 @@ ZEND_BEGIN_MODULE_GLOBALS(http) time_t lmod; char *allowed_methods; #ifdef HTTP_HAVE_CURL - http_curlbuf curlbuf; + struct { + struct { + char *data; + size_t used; + size_t free; + } body; + struct { + char *data; + size_t used; + size_t free; + } hdrs; + } curlbuf; #endif ZEND_END_MODULE_GLOBALS(http) -- 2.30.2