pkgsrc/textproc/glimpse/patches/patch-an

30 lines
989 B
Text

$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;