summaryrefslogtreecommitdiff
path: root/textproc/glimpse/patches/patch-an
blob: 4d5d92968086c453dd2958816a19e4294e984115 (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
30
$NetBSD: patch-an,v 1.2 2012/11/19 03:05:04 joerg Exp $

--- get_index.c.orig	2002-09-27 21:41:07.000000000 +0000
+++ get_index.c
@@ -15,7 +15,9 @@ extern	int	WHOLEFILESCOPE;
 extern	unsigned int *dest_index_set;
 extern	unsigned char *dest_index_buf;
 extern	int	mask_int[32];
+#ifndef errno
 extern	int	errno;
+#endif
 extern	int	ByteLevelIndex;
 extern  int	RecordLevelIndex;
 extern  int	rdelim_len;
@@ -53,6 +55,7 @@ free_list(p1)
 }
 
 /* Unions offset lists list2 with list1 sorted in increasing order (deletes elements from list2) => changes both list1 and list2: f += #elems added */
+void
 sorted_union(list1, list2, f, pf, cf)
 	struct offsets **list1, **list2;
 	int	*f, pf, cf;
@@ -115,6 +118,7 @@ sorted_union(list1, list2, f, pf, cf)
 }
 
 /* Intersects offset lists list2 with list1 sorted in increasing order (deletes elements from list2) => changes both list1 and list2 */
+void
 sorted_intersection(filenum, list1, list2, f)
 	struct offsets **list1, **list2;
 	int	*f;