summaryrefslogtreecommitdiff
path: root/textproc/glimpse/patches/patch-ae
blob: 9933c86d6800107b95cec4ea81955cd78ce9addc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
$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 <errno.h>
 
 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;