From: Jim Jagielski Date: Tue, 18 Jun 2013 12:50:05 +0000 (+0000) Subject: Merge r1491155 from trunk: X-Git-Tag: 2.4.5~105 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=49fa90ea9ad002f3420f515aba4cf41565060357;p=apache Merge r1491155 from trunk: Allow use of strtoul() It conforms to C89 and we don't support older compilers than that. PR: 55077 Submitted by: sf Reviewed/backported by: jim git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1494121 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/STATUS b/STATUS index de37763021..a676618c42 100644 --- a/STATUS +++ b/STATUS @@ -90,10 +90,6 @@ RELEASE SHOWSTOPPERS: PATCHES ACCEPTED TO BACKPORT FROM TRUNK: [ start all new proposals below, under PATCHES PROPOSED. ] - * core: Allow strtoul - trunk patch: http://svn.apache.org/r1491155 - 2.4.x patch: http://people.apache.org/~sf/PR55077.diff - +1: sf, jim, trawick PATCHES PROPOSED TO BACKPORT FROM TRUNK: [ New proposals should be added at the end of the list ] diff --git a/include/ap_mmn.h b/include/ap_mmn.h index 4c08be80b8..319c72a2c7 100644 --- a/include/ap_mmn.h +++ b/include/ap_mmn.h @@ -416,6 +416,7 @@ * 20120211.20 (2.4.5-dev) Add dirwalk_stat hook. * 20120211.21 (2.4.5-dev) Add in ap_proxy_create_hdrbrgd() and * ap_proxy_pass_brigade() + * 20120211.22 (2.4.5-dev) No longer prevent usage of strtoul() */ #define MODULE_MAGIC_COOKIE 0x41503234UL /* "AP24" */ @@ -423,7 +424,7 @@ #ifndef MODULE_MAGIC_NUMBER_MAJOR #define MODULE_MAGIC_NUMBER_MAJOR 20120211 #endif -#define MODULE_MAGIC_NUMBER_MINOR 21 /* 0...n */ +#define MODULE_MAGIC_NUMBER_MINOR 22 /* 0...n */ /** * Determine if the server's current MODULE_MAGIC_NUMBER is at least a diff --git a/include/httpd.h b/include/httpd.h index 9bc8be6e52..3b87e49cf8 100644 --- a/include/httpd.h +++ b/include/httpd.h @@ -2111,12 +2111,6 @@ extern int raise_sigstop_flags; */ AP_DECLARE(const char *) ap_psignature(const char *prefix, request_rec *r); -/** strtoul does not exist on sunos4. */ -#ifdef strtoul -#undef strtoul -#endif -#define strtoul strtoul_is_not_a_portable_function_use_strtol_instead - /* The C library has functions that allow const to be silently dropped ... these macros detect the drop in maintainer mode, but use the native methods for normal builds