Browse Source

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.

Mike Frysinger 18 years ago
parent
commit
11e8aa3066
1 changed files with 1 additions and 0 deletions
  1. 1 0
      libc/stdio/getchar.c

+ 1 - 0
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)