summaryrefslogtreecommitdiff
path: root/mail/cucipop/patches/patch-ab
blob: 032b9c84ea817569d094ef058964e599ad541f07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$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;