summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/nice.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1998-05-06 23:11:43 +0000
committerderaadt <deraadt@openbsd.org>1998-05-06 23:11:43 +0000
commit687bf81c847816f2a7e71854e7a413102e79a8f5 (patch)
tree502fd1c4f7e879c7045e8977fd5fbc560573af97 /lib/libc/gen/nice.c
parentComment out NTP for now as it seems to expose a bug in the use of performance (diff)
downloadwireguard-openbsd-687bf81c847816f2a7e71854e7a413102e79a8f5.tar.xz
wireguard-openbsd-687bf81c847816f2a7e71854e7a413102e79a8f5.zip
use errno.h
Diffstat (limited to 'lib/libc/gen/nice.c')
-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);