summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-05-06 23:11:44 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-05-06 23:11:44 +0000
commitbde37a268015ca3f420aaf405cb7a68e73883d66 (patch)
tree10f98cc98049992baea594810396385e7b838b69 /lib
parent8ba07f46292132d2d7fa873ced93b8f3f5070910 (diff)
use errno.h
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/nice.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/nice.c b/lib/libc/gen/nice.c
index 8d00c32d2b4..b6a95079fa6 100644
--- a/lib/libc/gen/nice.c
+++ b/lib/libc/gen/nice.c
@@ -32,12 +32,13 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: nice.c,v 1.2 1996/08/19 08:25:05 tholo Exp $";
+static char rcsid[] = "$OpenBSD: nice.c,v 1.3 1998/05/06 23:11:43 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
+#include <errno.h>
#include <unistd.h>
/*
@@ -48,7 +49,6 @@ nice(incr)
int incr;
{
int prio;
- extern int errno;
errno = 0;
prio = getpriority(PRIO_PROCESS, 0);