summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>1998-05-05 22:04:13 +0000
committerjb <jb@FreeBSD.org>1998-05-05 22:04:13 +0000
commit6efb9333277f98f4da06bfea7f64cc68eed0ca8c (patch)
tree1be7e313b7701e405e3c2be2a5814d25b189aaac
parentf615de946e225e9f195e9c200db8018be3704636 (diff)
downloadFreeBSD-src-6efb9333277f98f4da06bfea7f64cc68eed0ca8c.zip
FreeBSD-src-6efb9333277f98f4da06bfea7f64cc68eed0ca8c.tar.gz
Remove extern int errno and #include <errno.h> to get the proper definition.
-rw-r--r--lib/libc/gen/nice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/gen/nice.c b/lib/libc/gen/nice.c
index 8b37c06..104c1a2 100644
--- a/lib/libc/gen/nice.c
+++ b/lib/libc/gen/nice.c
@@ -38,6 +38,7 @@ static char sccsid[] = "@(#)nice.c 8.1 (Berkeley) 6/4/93";
#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);
OpenPOWER on IntegriCloud