projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dynamically allocate storage for gethostby* buffers
[musl]
/
src
/
internal
/
libc.c
diff --git
a/src/internal/libc.c
b/src/internal/libc.c
index
5e8e9d9
..
d22d274
100644
(file)
--- a/
src/internal/libc.c
+++ b/
src/internal/libc.c
@@
-1,3
+1,18
@@
#include "libc.h"
#include "libc.h"
-struct libc libc;
+#ifdef USE_LIBC_ACCESSOR
+struct __libc *__libc_loc()
+{
+ static struct __libc __libc;
+ return &__libc;
+}
+#else
+struct __libc __libc;
+#endif
+
+#ifdef BROKEN_VISIBILITY
+__asm__(".hidden __libc");
+#endif
+
+size_t __hwcap;
+size_t __sysinfo;