From: Martin Kraemer Date: Wed, 22 Aug 2001 15:40:29 +0000 (+0000) Subject: Use uniform wrapping for unistd.h, and don't include it if it's aready included via... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc3135efe5d5323456f05bbb0e5816d46a31a983;p=thirdparty%2Fapache%2Fhttpd.git Use uniform wrapping for unistd.h, and don't include it if it's aready included via fileio.h git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk/modules/ssl@90491 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/mod_ssl.h b/mod_ssl.h index c3afa4e3495..83b5d42afa0 100644 --- a/mod_ssl.h +++ b/mod_ssl.h @@ -97,9 +97,6 @@ #include #include #include -#if APR_HAVE_SYS_TIME_H -#include -#endif /* XXX: these better go away */ #include @@ -142,6 +139,16 @@ #include "ssl_util_ssl.h" #include "ssl_util_table.h" +/* The #ifdef macros are only defined AFTER including the above + * therefore we cannot include these system files at the top :-( + */ +#if APR_HAVE_SYS_TIME_H +#include +#endif +#if APR_HAVE_UNISTD_H +#include /* needed for STDIN_FILENO et.al., at least on FreeBSD */ +#endif + /* * Provide reasonable default for some defines */ diff --git a/ssl_expr_scan.c b/ssl_expr_scan.c index a2f29924e31..ddfa2fd5a89 100644 --- a/ssl_expr_scan.c +++ b/ssl_expr_scan.c @@ -38,7 +38,6 @@ #ifdef __cplusplus #include -#include /* Use prototypes in function declarations. */ #define YY_USE_PROTOS