$NetBSD: patch-aa,v 1.5 2003/06/10 17:58:34 jschauma Exp $

--- tli-sequent.c.orig	Thu Feb  5 11:40:42 2004
+++ tli-sequent.c	Thu Feb  5 11:43:16 2004
@@ -31,8 +31,6 @@
 #include <string.h>
 
 extern int errno;
-extern char *sys_errlist[];
-extern int sys_nerr;
 extern int t_errno;
 extern char *t_errlist[];
 extern int t_nerr;
@@ -157,12 +155,8 @@
 	    return (t_errlist[t_errno]);
 	}
     } else {
-	if (errno < 0 || errno >= sys_nerr) {
-	    sprintf(buf, "Unknown UNIX error %d", errno);
-	    return (buf);
-	} else {
-	    return (sys_errlist[errno]);
-	}
+	strcpy(buf, strerror(errno));
+	return (buf);
     }
 }
 
