diff options
author | tron <tron@pkgsrc.org> | 2000-09-06 12:31:50 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2000-09-06 12:31:50 +0000 |
commit | 50f5095f29ae13cc4766259383d5562d4a4dbf4b (patch) | |
tree | 75f3a584988b389ea6c838aedef522ea992b0f2b /mail/faces/patches | |
parent | 5fa52e5c2c5279c9d92daa0443acfb1799a5ff4b (diff) | |
download | pkgsrc-50f5095f29ae13cc4766259383d5562d4a4dbf4b.tar.gz |
Include "errno.h" instead of defining "sys_errlist" manually to avoid
link time warnings.
Diffstat (limited to 'mail/faces/patches')
-rw-r--r-- | mail/faces/patches/patch-af | 19 | ||||
-rw-r--r-- | mail/faces/patches/patch-av | 17 |
2 files changed, 33 insertions, 3 deletions
diff --git a/mail/faces/patches/patch-af b/mail/faces/patches/patch-af index b7d20674806..260e00b2d72 100644 --- a/mail/faces/patches/patch-af +++ b/mail/faces/patches/patch-af @@ -1,7 +1,7 @@ -$NetBSD: patch-af,v 1.3 2000/07/08 12:47:05 tron Exp $ +$NetBSD: patch-af,v 1.4 2000/09/06 12:31:50 tron Exp $ --- compface/uncmain.c.orig Thu Oct 24 03:28:07 1991 -+++ compface/uncmain.c Sat Jul 8 14:25:27 2000 ++++ compface/uncmain.c Wed Sep 6 14:28:50 2000 @@ -18,6 +18,8 @@ #include <fcntl.h> #include "compface.h" @@ -11,7 +11,20 @@ $NetBSD: patch-af,v 1.3 2000/07/08 12:47:05 tron Exp $ /* the buffer is longer than needed to handle sparse input formats */ #define FACEBUFLEN 2048 char fbuf[FACEBUFLEN]; -@@ -59,6 +61,13 @@ +@@ -33,8 +35,12 @@ + + /* error handling definitions follow */ + ++#ifdef __NetBSD__ ++#include <errno.h> ++#else + extern int errno, sys_nerr; + extern char *sys_errlist[]; ++#endif + + extern void exit P((int)) ; + +@@ -59,6 +65,13 @@ while (**argv) if (*((*argv)++) == '/') cmdname = *argv; /* find the command's basename */ diff --git a/mail/faces/patches/patch-av b/mail/faces/patches/patch-av new file mode 100644 index 00000000000..85be937c961 --- /dev/null +++ b/mail/faces/patches/patch-av @@ -0,0 +1,17 @@ +$NetBSD: patch-av,v 1.1 2000/09/06 12:31:50 tron Exp $ + +--- compface/cmain.c.orig Thu Oct 24 03:28:07 1991 ++++ compface/cmain.c Wed Sep 6 14:26:33 2000 +@@ -33,8 +33,12 @@ + + /* error handling definitions follow */ + ++#ifdef __NetBSD__ ++#include <errno.h> ++#else + extern int errno, sys_nerr; + extern char *sys_errlist[]; ++#endif + + extern void exit P((int)) ; + |