summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/isatty.c
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2013-04-17 17:40:35 +0000
committertedu <tedu@openbsd.org>2013-04-17 17:40:35 +0000
commit928cef96820a77291fe483e919fcbcc7abcb3319 (patch)
tree6d2f17e88a0caab51454d7a136558371549f03ca /lib/libc/gen/isatty.c
parentsilence some warnings by adding prototypes, casts, and headers as (diff)
downloadwireguard-openbsd-928cef96820a77291fe483e919fcbcc7abcb3319.tar.xz
wireguard-openbsd-928cef96820a77291fe483e919fcbcc7abcb3319.zip
add some prototypes, casts, includes, parenthesis, and whatnot to
silence some warnings.
Diffstat (limited to 'lib/libc/gen/isatty.c')
-rw-r--r--lib/libc/gen/isatty.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/gen/isatty.c b/lib/libc/gen/isatty.c
index 1915c6c3392..0a94648a29f 100644
--- a/lib/libc/gen/isatty.c
+++ b/lib/libc/gen/isatty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: isatty.c,v 1.7 2007/05/23 18:30:07 kurt Exp $ */
+/* $OpenBSD: isatty.c,v 1.8 2013/04/17 17:40:35 tedu Exp $ */
/*
* Copyright (c) 1988, 1993
* The Regents of the University of California. All rights reserved.
@@ -29,6 +29,7 @@
*/
#include <termios.h>
+#include <unistd.h>
int
isatty(int fd)