From 11e8aa30668ff696f4a4a125e17532c87b61e6e4 Mon Sep 17 00:00:00 2001
From: Mike Frysinger <vapier@gentoo.org>
Date: Wed, 20 Dec 2006 04:30:25 +0000
Subject: 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.
---
 libc/stdio/getchar.c | 1 +
 1 file changed, 1 insertion(+)

(limited to 'libc/stdio')

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)
-- 
cgit v1.2.3