$NetBSD: patch-ak,v 1.1 2005/10/10 16:18:04 joerg Exp $ --- libframe/misc.c.orig 2005-07-30 20:20:22.000000000 +0000 +++ libframe/misc.c @@ -2,6 +2,7 @@ #include #include #include +#include #ifdef NEEDVARARG #include #else @@ -22,8 +23,6 @@ fprint(int fd, char *z, ...) int errstr(char *buf) { - extern int errno; - strncpy(buf, strerror(errno), ERRLEN); return 1; }