summaryrefslogtreecommitdiff
path: root/sapi/apache2handler
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2016-07-11 09:40:30 +0200
committerAnatol Belski <ab@php.net>2016-07-11 09:40:43 +0200
commit45a8824423886797f31d39724068a67888cb6cbc (patch)
tree9d247bee95964114b24834527452ef6ec5695602 /sapi/apache2handler
parent2809a676b55cebd4c6f8a8895ffe286db0704e87 (diff)
downloadphp-git-45a8824423886797f31d39724068a67888cb6cbc.tar.gz
fix build with mod_winnt
Diffstat (limited to 'sapi/apache2handler')
-rw-r--r--sapi/apache2handler/sapi_apache2.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sapi/apache2handler/sapi_apache2.c b/sapi/apache2handler/sapi_apache2.c
index f61841d86c..f218f715c6 100644
--- a/sapi/apache2handler/sapi_apache2.c
+++ b/sapi/apache2handler/sapi_apache2.c
@@ -322,12 +322,16 @@ static void php_apache_sapi_log_message(char *msg, int syslog_type_int)
ctx = SG(server_context);
switch (syslog_type_int) {
+#if LOG_EMERG != LOG_CRIT
case LOG_EMERG:
aplog_type = APLOG_EMERG;
break;
+#endif
+#if LOG_ALERT != LOG_CRIT
case LOG_ALERT:
aplog_type = APLOG_ALERT;
break;
+#endif
case LOG_CRIT:
aplog_type = APLOG_CRIT;
break;
@@ -340,12 +344,16 @@ static void php_apache_sapi_log_message(char *msg, int syslog_type_int)
case LOG_NOTICE:
aplog_type = APLOG_NOTICE;
break;
+#if LOG_INFO != LOG_NOTICE
case LOG_INFO:
aplog_type = APLOG_INFO;
break;
+#endif
+#if LOG_NOTICE != LOG_DEBUG
case LOG_DEBUG:
aplog_type = APLOG_DEBUG;
break;
+#endif
}
if (ctx == NULL) { /* we haven't initialized our ctx yet, oh well */