pkgsrc/mail/cucipop/patches/patch-ab
2006-01-08 15:12:11 +00:00

24 lines
812 B
Text

$NetBSD: patch-ab,v 1.3 2006/01/08 15:12:11 joerg Exp $
--- xcreat.c.orig 1998-05-02 00:56:54.000000000 +0000
+++ xcreat.c
@@ -22,7 +22,10 @@
/*#define NOuname /* uncomment if uname is not available */
/*#define NOstrpbrk /* uncomment if strpbrk is not available */
/*#define strchr(s,c) index(s,c) /* uncomment if strchr is not available */
+#include <sys/param.h>
+#if !(defined(BSD) && BSD >= 199306)
#define const /* can be undefined for ANSI compilers */
+#endif
#include <unistd.h> /* open() close() link() unlink()
getpid() */
@@ -57,8 +60,6 @@
#define irotbSERIAL (1L<<bitsSERIAL-rotbSERIAL)
#define mrotbSERIAL ((maskSERIAL&irotbSERIAL-1)+irotbSERIAL)
-extern errno;
-
#ifdef NOstrpbrk
char*strpbrk(st,del)const char*const st,*del;
{ const char*f=0,*t;