summaryrefslogtreecommitdiff
path: root/devel/bcc/patches/patch-as
blob: 594761b71b2981c0087dec870f282765c1c9cec4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$NetBSD: patch-as,v 1.2 2006/10/10 06:56:05 uebayasi Exp $

--- ld/io.c.orig	1994-04-17 23:59:53.000000000 +0200
+++ ld/io.c
@@ -13,6 +13,7 @@ void *malloc P((unsigned size));
 #else
 #undef NULL
 #include <stdlib.h>
+#include <string.h>
 #endif
 
 #ifdef POSIX_HEADERS_MISSING
@@ -33,7 +34,6 @@ int read P((int fd, void *buf, unsigned 
 mode_t umask P((int oldmask));
 int write P((int fd, const void *buf, unsigned nbytes));
 #else
-#undef NULL
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>