2013-09-26 17:14:40 +02:00

21 lines
522 B
Plaintext

$NetBSD: patch-ao,v 1.1 2006/05/09 19:24:24 joerg Exp $
--- base/libmisc/chowntty.c.orig 2006-05-09 18:12:33.000000000 +0000
+++ base/libmisc/chowntty.c
@@ -35,6 +35,7 @@ RCSID("$Id: chowntty.c,v 1.3 1997/05/01
#include <sys/types.h>
#include <sys/stat.h>
+#include <errno.h>
#include <stdio.h>
#include <grp.h>
@@ -72,7 +73,6 @@ chown_tty(tty, info)
const char *tty;
const struct passwd *info;
{
- extern int errno;
char buf[BUFSIZ];
char *group; /* TTY group name or number */
struct group *grent;