com php-src: fix build with mod_winnt: sapi/apache2hand ler/sapi_apache2.c
| From: | Anatol Belski | Date: | Mon, 11 Jul 2016 07:40:43 +0000 |
| Subject: | com php-src: fix build with mod_winnt: sapi/apache2hand ler/sapi_apache2.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-92905@lists.php.net to get a copy of this message | ||
Commit: 45a8824423886797f31d39724068a67888cb6cbc
Author: Anatol Belski <ab@php.net> Mon, 11 Jul 2016 09:40:30 +0200
Parents: 2809a676b55cebd4c6f8a8895ffe286db0704e87
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=45a8824423886797f31d39724068a67888cb6cbc
Log:
fix build with mod_winnt
Changed paths:
M sapi/apache2handler/sapi_apache2.c
Diff:
diff --git a/sapi/apache2handler/sapi_apache2.c b/sapi/apache2handler/sapi_apache2.c
index f61841d..f218f71 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 */