From: Jim Jagielski Date: Tue, 18 Jun 2002 02:07:00 +0000 (+0000) Subject: Just in case, handle LONG_* if limits doesn't have 'em X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48a7e3abb536b1320ad3ceb7403c70c1a3f5af4a;p=thirdparty%2Fapache%2Fhttpd.git Just in case, handle LONG_* if limits doesn't have 'em git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@95751 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/ap/ap_strtol.c b/src/ap/ap_strtol.c index 39b5b819ecb..dfa865c4b1f 100644 --- a/src/ap/ap_strtol.c +++ b/src/ap/ap_strtol.c @@ -94,6 +94,12 @@ #include #include "ap_ctype.h" +#ifndef LONG_MAX +#define LONG_MAX 2147483647 +#endif +#ifndef LONG_MIN +#define LONG_MIN (-2147483647-1) +#endif /* * Convert a string to a long integer.