]> granicus.if.org Git - apache/commitdiff
* Include <limits.h> earlier if available since INT_MAX is defined there on
authorRuediger Pluem <rpluem@apache.org>
Sat, 17 May 2008 19:32:01 +0000 (19:32 +0000)
committerRuediger Pluem <rpluem@apache.org>
Sat, 17 May 2008 19:32:01 +0000 (19:32 +0000)
  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/trunk@657433 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
support/ab.c

diff --git a/CHANGES b/CHANGES
index 2045f52af91836aaf692bb306f90fab6b1d1305f..10f2cbd87284dcac3977acb51dcd8bf160c28272 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,8 @@
 Changes with Apache 2.3.0
 [ When backported to 2.2.x, remove entry from this file ]
 
+  *) ab: Make ab.c compile on VC6. PR 45024  [Ruediger Pluem]
+
   *) configure: Don't reject libtool 2.x
      PR 44817 [Arfrever Frehtes Taifersar Arahesis <Arfrever.FTA gmail.com>]
 
index b2a467c95ffcae270f4cd1779c38af7a9572c59f..d1cf2ad8e5497eb99d07ca04f697742796171e0f 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