summaryrefslogtreecommitdiff
path: root/sapi/apache2handler/sapi_apache2.c
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2010-05-04 09:51:03 +0000
committerPierre Joye <pajoye@php.net>2010-05-04 09:51:03 +0000
commitaf567e7d54e5cf15954bd83c0af443b7f6ee30a5 (patch)
treeb8d979c033e6a8480066fd1f1e3924e170cb0ad9 /sapi/apache2handler/sapi_apache2.c
parente0e0147003554f537a4d86cb53a720b3fc7bb037 (diff)
downloadphp-git-af567e7d54e5cf15954bd83c0af443b7f6ee30a5.tar.gz
- fix build
Diffstat (limited to 'sapi/apache2handler/sapi_apache2.c')
-rw-r--r--sapi/apache2handler/sapi_apache2.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sapi/apache2handler/sapi_apache2.c b/sapi/apache2handler/sapi_apache2.c
index f5656bdc4f..7efa32d651 100644
--- a/sapi/apache2handler/sapi_apache2.c
+++ b/sapi/apache2handler/sapi_apache2.c
@@ -53,8 +53,10 @@
#include "php_apache.h"
-#if _MSC_VER <= 1300
-# include "win32/php_strtoi64.h"
+#ifdef PHP_WIN32
+# if _MSC_VER <= 1300
+# include "win32/php_strtoi64.h"
+# endif
#endif
/* UnixWare and Netware define shutdown to _shutdown, which causes problems later
@@ -124,7 +126,7 @@ php_apache_sapi_header_handler(sapi_header_struct *sapi_header, sapi_header_op_e
}
ctx->content_type = estrdup(val);
} else if (!strcasecmp(sapi_header->header, "content-length")) {
-#ifdef PHP_WINDOWS
+#ifdef PHP_WIN32
# ifdef APR_HAS_LARGE_FILES
ap_set_content_length(ctx->r, (apr_off_t) _strtoui64(val, (char **)NULL, 10));
# else