From 3ad8d4d33a7c7cb5c2bba376bcc0a1080cf63ab1 Mon Sep 17 00:00:00 2001 From: sgunderson Date: Sun, 17 Sep 2000 00:59:57 +0000 Subject: [PATCH] New files. --- dcache.c | 27 +-------------------------- dcache.h | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 26 deletions(-) diff --git a/dcache.c b/dcache.c index bd0fcd7..ddf5cab 100644 --- a/dcache.c +++ b/dcache.c @@ -19,34 +19,10 @@ #include #endif -#if HAVE_TIME_H -#include -#endif - -#if HAVE_SYS_TIME_H -#include -#endif - -#if HAVE_PWD_H -#include -#endif - -#if HAVE_SYS_TYPES_H -#include -#endif - -#if HAVE_SYS_SOCKET_H -#include -#endif - #if HAVE_SYS_STAT_H #include #endif -#if HAVE_NETINET_IN_H -#include -#endif - #if HAVE_STDLIB_H #include #endif @@ -59,9 +35,8 @@ #include #endif -#include - #if WANT_DCACHE +#include #include extern struct dcache *first_dcache; diff --git a/dcache.h b/dcache.h index 1be0150..d45614b 100644 --- a/dcache.h +++ b/dcache.h @@ -15,6 +15,19 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +#ifndef _DCACHE_H +#define _DCACHE_H 1 + +#if HAVE_TIME_H +#include +#endif + +#if HAVE_SYS_TIME_H +#include +#endif + +#include + /* doubly linked list of cached directory listings */ struct dcache { struct dcache *prev_dcache; @@ -36,3 +49,5 @@ struct dcache *alloc_new_dcache(); void time_out_dcache(); void populate_dcache(struct ftran * const f, const char * const cwd, const char * const pattern, const struct list_options * const lo); + +#endif -- 2.39.2