From: Roy T. Fielding Date: Tue, 30 Apr 2002 01:29:11 +0000 (+0000) Subject: Remove APR_WANT_SIGNAL from apr_want.h because code must include X-Git-Tag: 2.0.36~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=267591e39f5f4c366be86942fa588359cb7c7b53;p=apache Remove APR_WANT_SIGNAL from apr_want.h because code must include apr_signal.h in order to get consistent definitions. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94872 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/support/ab.c b/support/ab.c index 5aede6e5c8..fdcc493007 100644 --- a/support/ab.c +++ b/support/ab.c @@ -153,24 +153,18 @@ #define BSD_COMP #include "apr.h" +#include "apr_signal.h" #include "apr_strings.h" #include "apr_network_io.h" #include "apr_file_io.h" #include "apr_time.h" #include "apr_getopt.h" #include "apr_general.h" -#include #include "apr_lib.h" #include "ap_release.h" #define APR_WANT_STRFUNC #include "apr_want.h" -#if APR_HAVE_STDIO_H -#include /* for EOF */ -#endif -#if APR_HAVE_STDLIB_H -#include -#endif #include "apr_base64.h" #ifdef NOT_ASCII @@ -1335,14 +1329,14 @@ static void test(void) static void copyright(void) { if (!use_html) { - printf("This is ApacheBench, Version %s\n", AP_AB_BASEREVISION " <$Revision: 1.98 $> apache-2.0"); + printf("This is ApacheBench, Version %s\n", AP_AB_BASEREVISION " <$Revision: 1.99 $> apache-2.0"); printf("Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/\n"); printf("Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/\n"); printf("\n"); } else { printf("

\n"); - printf(" This is ApacheBench, Version %s <%s> apache-2.0
\n", AP_AB_BASEREVISION, "$Revision: 1.98 $"); + printf(" This is ApacheBench, Version %s <%s> apache-2.0
\n", AP_AB_BASEREVISION, "$Revision: 1.99 $"); printf(" Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
\n"); printf(" Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/
\n"); printf("

\n

\n"); @@ -1716,8 +1710,8 @@ int main(int argc, const char * const argv[]) exit(1); } #endif -#if SIGPIPE - signal(SIGPIPE, SIG_IGN); /* Ignore writes to connections that +#ifdef SIGPIPE + apr_signal(SIGPIPE, SIG_IGN); /* Ignore writes to connections that * have been closed at the other end. */ #endif copyright();