summaryrefslogtreecommitdiff
path: root/lib/libc/gen/isatty.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen/isatty.c')
-rw-r--r--lib/libc/gen/isatty.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/gen/isatty.c b/lib/libc/gen/isatty.c
index c0b543698db..ba45a987738 100644
--- a/lib/libc/gen/isatty.c
+++ b/lib/libc/gen/isatty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: isatty.c,v 1.10 2015/05/17 01:56:02 deraadt Exp $ */
+/* $OpenBSD: isatty.c,v 1.11 2015/09/12 14:56:50 guenther Exp $ */
/*
* Copyright (c) 1988, 1993
* The Regents of the University of California. All rights reserved.
@@ -29,9 +29,11 @@
*/
#include <fcntl.h>
+#include <unistd.h>
int
isatty(int fd)
{
return fcntl(fd, F_ISATTY) != -1;
}
+DEF_WEAK(isatty);