]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Backport r657433 by rpluem
authorRoy T. Fielding <fielding@apache.org>
Tue, 27 May 2008 21:00:16 +0000 (21:00 +0000)
committerRoy T. Fielding <fielding@apache.org>
Tue, 27 May 2008 21:00:16 +0000 (21:00 +0000)
* Include <limits.h> earlier if available since INT_MAX is defined there on
  Windows and we need INT_MAX already for the definition of MAX_REQUESTS.

PR: 45024

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@660702 13f79535-47bb-0310-9956-ffa450edef68

support/ab.c

index 0bada081017d3e5929d26efe32d3d07fe7be4803..2f589e831a71b3b1b2f70d70ea45086d19049eba 100644 (file)
@@ -193,6 +193,9 @@ typedef STACK_OF(X509) X509_STACK_TYPE;
 #if APR_HAVE_CTYPE_H
 #include <ctype.h>
 #endif
+#if APR_HAVE_LIMITS_H
+#include <limits.h>
+#endif
 
 /* ------------------- DEFINITIONS -------------------------- */
 
@@ -426,7 +429,6 @@ static void ssl_state_cb(const SSL *s, int w, int r)
 }
 
 #ifndef RAND_MAX
-#include <limits.h>
 #define RAND_MAX INT_MAX
 #endif