summaryrefslogtreecommitdiff
path: root/textproc/cawf/patches/patch-ab
blob: 72068457a959ea41c8264ec627194e32ded49a26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-ab,v 1.1 2005/11/08 19:33:50 tv Exp $

--- proto.h.orig	1997-02-22 09:26:18.000000000 -0500
+++ proto.h
@@ -36,6 +36,7 @@
 # else	/* !defined(USG) */
 #include <strings.h>
 # endif	/* defined(USG) */
+#include <unistd.h>
 #else	/* !defined(UNIX) */
 #include <string.h>
 #endif	/* defined(UNIX) */
@@ -103,7 +104,9 @@ _PROTOTYPE(int Findparms,(unsigned char 
 _PROTOTYPE(int Findscale,(int n, double v, int e));
 _PROTOTYPE(unsigned char *Findstr,(unsigned char *nm, unsigned char *s, int e));
 _PROTOTYPE(void Free,(unsigned char **p));
+#if	!defined(UNIX)
 _PROTOTYPE(int getopt,(int argc, char **argv, char *opts));
+#endif
 _PROTOTYPE(int LenprtHF,(unsigned char *s, int p, int t, unsigned char **b, int bl));
 _PROTOTYPE(int main,(int argc, char *argv[]));
 _PROTOTYPE(void Macro,(unsigned char *inp));