diff options
author | tv <tv> | 2005-11-08 19:33:50 +0000 |
---|---|---|
committer | tv <tv> | 2005-11-08 19:33:50 +0000 |
commit | 0b529500e2346dd8c9cb62c93019b89da68e151c (patch) | |
tree | 1f2b6aba26197a9614617bf90dc14fb96b33f40e /textproc/cawf | |
parent | f4a57105220d5ad16b1dbbffe35fa67f993287a7 (diff) | |
download | pkgsrc-0b529500e2346dd8c9cb62c93019b89da68e151c.tar.gz |
Don't override the system-supplied prototype for getopt(3).
Diffstat (limited to 'textproc/cawf')
-rw-r--r-- | textproc/cawf/distinfo | 3 | ||||
-rw-r--r-- | textproc/cawf/patches/patch-ab | 22 |
2 files changed, 24 insertions, 1 deletions
diff --git a/textproc/cawf/distinfo b/textproc/cawf/distinfo index 06b3443634d..c86514138cd 100644 --- a/textproc/cawf/distinfo +++ b/textproc/cawf/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.2 2005/02/24 14:48:40 agc Exp $ +$NetBSD: distinfo,v 1.3 2005/11/08 19:33:50 tv Exp $ SHA1 (cawf-4.10/cawf.zip) = c16985f79c5d9b11de62dff6ed24d210ca12eb40 RMD160 (cawf-4.10/cawf.zip) = 33bce828f0a88c05c32c221a9fd5d1ca5d4ad2b4 Size (cawf-4.10/cawf.zip) = 287677 bytes SHA1 (patch-aa) = 21ff1ae5d3fb3a32cb855c2b4353ffbe62ebcd17 +SHA1 (patch-ab) = 52fa93c4903539f5cf56e2c904b7ffea3610899f diff --git a/textproc/cawf/patches/patch-ab b/textproc/cawf/patches/patch-ab new file mode 100644 index 00000000000..72068457a95 --- /dev/null +++ b/textproc/cawf/patches/patch-ab @@ -0,0 +1,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)); |