httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Stein <gst...@lyra.org>
Subject Re: cvs commit: apache-2.0/src/lib/apr/lib apr_pools.c
Date Wed, 08 Sep 1999 19:42:41 GMT
Should they all use HAVE_SYS_STAT_H ? And if they do, then could they
just all go into the same #ifdef, rather than having three of them?

Cheers,
-g

rbb@hyperreal.org wrote:
> 
> rbb         99/09/08 12:07:09
> 
>   Modified:    src/lib/apr/lib apr_pools.c
>   Log:
>   Protect some #includes with #ifdefs and remove one that is no longer needed.
> 
>   Revision  Changes    Path
>   1.7       +6 -1      apache-2.0/src/lib/apr/lib/apr_pools.c
> 
>   Index: apr_pools.c
>   ===================================================================
>   RCS file: /home/cvs/apache-2.0/src/lib/apr/lib/apr_pools.c,v
>   retrieving revision 1.6
>   retrieving revision 1.7
>   diff -u -r1.6 -r1.7
>   --- apr_pools.c       1999/09/08 18:04:15     1.6
>   +++ apr_pools.c       1999/09/08 19:07:07     1.7
>   @@ -72,10 +72,15 @@
>    #include "apr_pools.h"
>    #include "apr_lib.h"
>    #include "misc.h"
>   +#ifdef HAVE_SYS_STAT_H
>    #include <sys/stat.h>
>   +#endif
>   +#ifdef HAVE_SYS_STAT_H
>    #include <sys/types.h>
>   -#include <dirent.h>
>   +#endif
>   +#ifdef HAVE_SYS_STAT_H
>    #include <fcntl.h>
>   +#endif
> 
>    #ifdef HAVE_STDLIB_H
>    #include <stdlib.h>
> 
> 
> 

--
Greg Stein, http://www.lyra.org/

Mime
View raw message