summaryrefslogtreecommitdiff
path: root/libc/stdio/getchar.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-12-20 04:30:25 +0000
committerMike Frysinger <vapier@gentoo.org>2006-12-20 04:30:25 +0000
commit11e8aa30668ff696f4a4a125e17532c87b61e6e4 (patch)
tree404fabb344ae96b0fb3b1ad4f8d9141925428655 /libc/stdio/getchar.c
parent11578cd6027736601ca4671443b549f744ffa01d (diff)
Paul Brook writes:
When building an arm-uclinux toolchain withthreading disabled I get: libc/stdio/getchar.c:26: error: 'getchar' aliased to undefined symbol 'getchar_unlocked' It looks like it's missing libc_hidden_def(getchar_unlocked). Patch below fixes this.
Diffstat (limited to 'libc/stdio/getchar.c')
-rw-r--r--libc/stdio/getchar.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/stdio/getchar.c b/libc/stdio/getchar.c
index a8c39f8db..e29c426c8 100644
--- a/libc/stdio/getchar.c
+++ b/libc/stdio/getchar.c
@@ -21,6 +21,7 @@ int getchar_unlocked(void)
return __GETC_UNLOCKED_MACRO(stream);
}
+libc_hidden_def(getchar_unlocked)
#ifndef __UCLIBC_HAS_THREADS__
strong_alias(getchar_unlocked,getchar)