From: Jim Jagielski Date: Fri, 16 Dec 2016 15:44:07 +0000 (+0000) Subject: Merge r1706595 from trunk: X-Git-Tag: 2.4.25~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df3270029be642db977274e25899b09496dccf19;p=thirdparty%2Fapache%2Fhttpd.git Merge r1706595 from trunk: Follow-up to r1702948: APR_HAVE_foo is checked via #if, not #ifdef (since it should always be defined, to either 0 or 1) This fixes a compile error on Windows introduced by r1702948 as well as straightens up two long-time glitches. Submitted by: trawick Reviewed/backported by: jim git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1774626 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/STATUS b/STATUS index 3c360f7d29b..b9be65830a8 100644 --- a/STATUS +++ b/STATUS @@ -118,13 +118,6 @@ RELEASE SHOWSTOPPERS: PATCHES ACCEPTED TO BACKPORT FROM TRUNK: [ start all new proposals below, under PATCHES PROPOSED. ] - *) APR_HAVE_foo is checked via #if, not #ifdef (since it should always be - defined, to either 0 or 1). - This fixes a compile error on Windows introduced by r1702948. - as well as straightens up two long-time glitches. - trunk patch: http://svn.apache.org/r1706595 - 2.4.x patch: trunk works - +1: rjung, jim, ylavic PATCHES PROPOSED TO BACKPORT FROM TRUNK: diff --git a/include/scoreboard.h b/include/scoreboard.h index e3c68d26cb5..1378128943e 100644 --- a/include/scoreboard.h +++ b/include/scoreboard.h @@ -26,7 +26,7 @@ extern "C" { #endif -#ifdef APR_HAVE_SYS_TIME_H +#if APR_HAVE_SYS_TIME_H #include #include #endif diff --git a/modules/filters/regexp.c b/modules/filters/regexp.c index ba118a6552d..4acccca6765 100644 --- a/modules/filters/regexp.c +++ b/modules/filters/regexp.c @@ -30,7 +30,7 @@ #include "apr.h" #include "apr_lib.h" -#ifdef APR_HAVE_LIMITS_H +#if APR_HAVE_LIMITS_H #include #endif #if APR_HAVE_STDLIB_H diff --git a/modules/ssl/ssl_private.h b/modules/ssl/ssl_private.h index 7f6f9fd95ac..7813e4137cd 100644 --- a/modules/ssl/ssl_private.h +++ b/modules/ssl/ssl_private.h @@ -57,7 +57,7 @@ /* The #ifdef macros are only defined AFTER including the above * therefore we cannot include these system files at the top :-( */ -#ifdef APR_HAVE_STDLIB_H +#if APR_HAVE_STDLIB_H #include #endif #if APR_HAVE_SYS_TIME_H