pkgsrc/mail/faces/patches/patch-av
tron 3ade13ff09 Revert last change. Using GNU make under Darwin didn't fix the problem,
it only masked it. Switch back to BSD make and fix real problems. This
results in a complete installation of the package under Darwin.
2006-01-08 14:30:01 +00:00

27 lines
802 B
Text

$NetBSD: patch-av,v 1.4 2006/01/08 14:30:01 tron Exp $
--- compface/cmain.c.orig 1991-10-24 03:28:07.000000000 +0100
+++ compface/cmain.c 2006-01-08 14:19:04.000000000 +0000
@@ -33,12 +33,21 @@
/* error handling definitions follow */
-extern int errno, sys_nerr;
+#include <errno.h>
+#include <stdio.h>
+
+#if !defined(__NetBSD__) && !defined(__INTERIX) && !defined(__DragonFly__) && !defined(__FreeBSD__) && !defined(__APPLE__)
+extern int sys_nerr;
extern char *sys_errlist[];
+#endif
extern void exit P((int)) ;
+#ifdef __INTERIX
+#define ERR strerror(errno)
+#else
#define ERR ((errno < sys_nerr) ? sys_errlist[errno] : "")
+#endif
#define INITERR(s) {(void)strcpy(fbuf, cmdname); (void)strcat(fbuf, ": ");\
(void)strcat(fbuf, (s));}
#define ADDERR(s) (void)strcat(fbuf, (s));