$NetBSD: patch-ae,v 1.2 2006/03/03 02:59:07 minskim Exp $ --- index/glimpse.c.orig 2002-09-27 14:41:11.000000000 -0700 +++ index/glimpse.c @@ -9,7 +9,9 @@ #include extern char **environ; +#ifndef errno extern int errno; +#endif extern FILE *TIMEFILE; /* file descriptor for sorting .glimpse_filenames by time */ #if BG_DEBUG extern FILE *LOGFILE; /* file descriptor for LOG output */ @@ -19,12 +21,13 @@ extern FILE *MESSAGEFILE; /* file descr extern char INDEX_DIR[MAX_LINE_LEN]; extern struct stat istbuf; -extern char *TEMP_DIR; /* directory to store glimpse temporary files, usually /tmp unless -T is specified */ #ifdef BUILDCAST /* TEMP_DIR is normally defined in ../main.c; if we're building * buildcast, that's not linked in, so we need to define one here. */ /* char * TEMP_DIR = NULL; */ static char * TEMP_DIR = "/tmp"; +#else +extern char *TEMP_DIR; /* directory to store glimpse temporary files, usually /tmp unless -T is specified */ #endif /* BUILDCAST */ extern int indexable_char[256]; extern int GenerateHash;