$NetBSD: patch-ch,v 1.2 2002/03/28 10:11:55 jmc Exp $

--- ../gcc-2.95.3/libio/iopopen.c.orig 2000/07/26 00:19:32 1.1.1.1
+++ ../gcc-2.95.3/libio/iopopen.c 2001/07/26 17:18:39 1.2
@@ -31,7 +31,7 @@
 #ifdef __STDC__
 #include <stdlib.h>
 #endif
-#ifdef _LIBC
+#if defined(_LIBC) || defined(__NetBSD__)
 # include <unistd.h>
 #endif
 #include <sys/types.h>
