diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libc-symbols.h | 4 | ||||
-rw-r--r-- | include/malloc.h | 10 |
2 files changed, 12 insertions, 2 deletions
diff --git a/include/libc-symbols.h b/include/libc-symbols.h index bc1c240..07badec 100644 --- a/include/libc-symbols.h +++ b/include/libc-symbols.h @@ -363,8 +363,8 @@ # define INTVARDEF(name) \ _INTVARDEF(name, name##_internal) # define _INTVARDEF(name, aliasname) \ - extern __typeof (name) aliasname __attribute__ ((visibility ("hidden"))); \ - strong_alias (name, name##_internal) + extern __typeof (name) aliasname __attribute__ ((alias (#name), \ + visibility ("hidden"))); # define INTDEF2(name, newname) strong_alias (name, newname##_internal) #else # define INTUSE(name) name diff --git a/include/malloc.h b/include/malloc.h index 448e0a8..eb2afb9 100644 --- a/include/malloc.h +++ b/include/malloc.h @@ -1 +1,11 @@ +#ifndef _MALLOC_H #include <malloc/malloc.h> + + +/* In the GNU libc we rename the global variable + `__malloc_initialized' to `__libc_malloc_initialized'. */ +#define __malloc_initialized __libc_malloc_initialized +/* Nonzero if the malloc is already initialized. */ +extern int __malloc_initialized attribute_hidden; + +#endif |