summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
Diffstat (limited to 'libc')
-rw-r--r--libc/misc/internals/__uClibc_main.c5
-rw-r--r--libc/stdio/_stdio.h2
-rw-r--r--libc/stdio/fflush.c2
-rw-r--r--libc/sysdeps/linux/common/creat64.c3
4 files changed, 8 insertions, 4 deletions
diff --git a/libc/misc/internals/__uClibc_main.c b/libc/misc/internals/__uClibc_main.c
index 5f31e347c..d0de0d30e 100644
--- a/libc/misc/internals/__uClibc_main.c
+++ b/libc/misc/internals/__uClibc_main.c
@@ -82,9 +82,12 @@ void internal_function _dl_aux_init (ElfW(auxv_t) *av);
/*
* Prototypes.
*/
-extern void weak_function _stdio_init(void) attribute_hidden;
extern int *weak_const_function __errno_location(void);
+libc_hidden_proto(__errno_location)
extern int *weak_const_function __h_errno_location(void);
+libc_hidden_proto(__h_errno_location)
+
+extern void weak_function _stdio_init(void) attribute_hidden;
#ifdef __UCLIBC_HAS_LOCALE__
extern void weak_function _locale_init(void) attribute_hidden;
#endif
diff --git a/libc/stdio/_stdio.h b/libc/stdio/_stdio.h
index 27075a8ac..aaa3ad656 100644
--- a/libc/stdio/_stdio.h
+++ b/libc/stdio/_stdio.h
@@ -46,7 +46,7 @@ do { \
__STDIO_THREADUNLOCK_OPENLIST_DEL; \
} while (0)
-extern void _stdio_openlist_dec_use(void);
+extern void _stdio_openlist_dec_use(void) attribute_hidden;
#define __STDIO_OPENLIST_DEC_USE \
_stdio_openlist_dec_use()
diff --git a/libc/stdio/fflush.c b/libc/stdio/fflush.c
index cee712a92..01564a936 100644
--- a/libc/stdio/fflush.c
+++ b/libc/stdio/fflush.c
@@ -27,7 +27,7 @@
(_stdio_user_locking != 2))
#if defined(__UCLIBC_HAS_THREADS__) && defined(__STDIO_BUFFERS)
-void _stdio_openlist_dec_use(void)
+void attribute_hidden _stdio_openlist_dec_use(void)
{
__STDIO_THREADLOCK_OPENLIST_DEL;
if ((_stdio_openlist_use_count == 1) && (_stdio_openlist_del_count > 0)) {
diff --git a/libc/sysdeps/linux/common/creat64.c b/libc/sysdeps/linux/common/creat64.c
index 875606a1d..6fa010545 100644
--- a/libc/sysdeps/linux/common/creat64.c
+++ b/libc/sysdeps/linux/common/creat64.c
@@ -23,7 +23,8 @@
#include <sys/types.h>
extern __typeof(open64) __libc_open64;
-/* libc_hidden_proto(__libc_open64) */
+libc_hidden_proto(__libc_open64)
+
extern __typeof(creat64) __libc_creat64;
/* Create FILE with protections MODE. */