$NetBSD: patch-af,v 1.1 2003/09/23 18:40:07 tron Exp $

--- libiberty/strerror.c.orig	2003-03-03 01:48:43.000000000 +0100
+++ libiberty/strerror.c	2003-09-23 20:08:13.000000000 +0200
@@ -19,6 +19,10 @@
 #include <stdio.h>
 #include <errno.h>
 
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+
 #ifdef HAVE_SYS_ERRLIST
 #undef sys_errlist
 #endif
@@ -462,7 +466,9 @@
 
 #else
 
+#ifndef __NetBSD__
 extern int sys_nerr;
+#endif
 extern char *sys_errlist[];
 
 #endif
