summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/getchar.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdio/getchar.c')
-rw-r--r--lib/libc/stdio/getchar.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/stdio/getchar.c b/lib/libc/stdio/getchar.c
index 550817de028..0bf6ce1ad19 100644
--- a/lib/libc/stdio/getchar.c
+++ b/lib/libc/stdio/getchar.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: getchar.c,v 1.7 2005/08/08 08:05:36 espie Exp $ */
+/* $OpenBSD: getchar.c,v 1.8 2015/08/31 02:53:57 guenther Exp $ */
/*-
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
@@ -43,6 +43,7 @@ getchar_unlocked(void)
{
return (getc_unlocked(stdin));
}
+DEF_WEAK(getchar_unlocked);
/*
@@ -56,3 +57,4 @@ getchar(void)
{
return (getc(stdin));
}
+DEF_STRONG(getchar);