pkgsrc/editors/sam/patches/patch-ak

21 lines
428 B
Text

$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 <u.h>
#include <libc.h>
#include <pwd.h>
+#include <errno.h>
#ifdef NEEDVARARG
#include <varargs.h>
#else
@@ -22,8 +23,6 @@ fprint(int fd, char *z, ...)
int errstr(char *buf)
{
- extern int errno;
-
strncpy(buf, strerror(errno), ERRLEN);
return 1;
}