X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Finternal%2Flibc.c;h=5f12e29588cf1cccba4f8e967c7fe7927b14e3c3;hp=5e8e9d95311f346013ce0c12c99f474fd98ea0ab;hb=41d518360fd2da0f19d6a2f8d8c5f226b201c1e9;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;ds=sidebyside diff --git a/src/internal/libc.c b/src/internal/libc.c index 5e8e9d95..5f12e295 100644 --- a/src/internal/libc.c +++ b/src/internal/libc.c @@ -1,3 +1,11 @@ #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