summaryrefslogtreecommitdiff
path: root/textproc/bsdgrep-devel/patches/patch-ac
blob: 1e5ff6435005eadeccc53707b8922e98ce8ca0c8 (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-ac,v 1.3 2005/12/18 14:27:01 joerg Exp $

--- grep.c.orig	2004-05-05 14:34:55.000000000 +0000
+++ grep.c
@@ -37,6 +37,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 
+#include <zlib.h>
 #include <err.h>
 #include <errno.h>
 #include <getopt.h>
@@ -111,7 +112,7 @@ int binbehave = BIN_FILE_BIN;
 int dirbehave = GREP_READ;
 int devbehave = GREP_READ;
 /*int linkbehave = LINK_FOLLOW;*/
-char *stdin_label;
+const char *stdin_label;
 
 enum {
 	BIN_OPT = CHAR_MAX + 1,
@@ -137,7 +138,7 @@ usage(void)
 	exit(2);
 }
 
-static char *optstr = "0123456789A:B:C:D:EFGHILUVZabcd:e:f:hilm:noqrsuvwxyz";
+static const char optstr[] = "0123456789A:B:C:D:EFGHILUVZabcd:e:f:hilm:noqrsuvwxyz";
 
 struct option long_options[] =
 {