summaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authorRuediger Pluem <rpluem@apache.org>2008-05-17 19:32:01 +0000
committerRuediger Pluem <rpluem@apache.org>2008-05-17 19:32:01 +0000
commit390b2cc17cd1e853d5be98ae367ab74b351a21d5 (patch)
tree08df17ddeda671e33cced97d8fa30544f01ab0b3 /support
parentdef48d549214ee91e7976e689eda51bb39b9c4c5 (diff)
downloadhttpd-390b2cc17cd1e853d5be98ae367ab74b351a21d5.tar.gz
* 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/trunk@657433 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'support')
-rw-r--r--support/ab.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/support/ab.c b/support/ab.c
index b2a467c95f..d1cf2ad8e5 100644
--- a/support/ab.c
+++ b/support/ab.c
@@ -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