X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Flocale%2Fdcngettext.c;h=d1e6c6d13af33d6f095a58ed583502214fa2bcad;hb=0ea78a6421322cab24d448670006ee2f99af3ac9;hp=4c30439389805224cb14910f09674b56a2177711;hpb=8d82971775343f3c52294e957c52ad1f758395ef;p=musl diff --git a/src/locale/dcngettext.c b/src/locale/dcngettext.c index 4c304393..d1e6c6d1 100644 --- a/src/locale/dcngettext.c +++ b/src/locale/dcngettext.c @@ -10,6 +10,12 @@ #include "atomic.h" #include "pleval.h" #include "lock.h" +#include "fork_impl.h" + +#define malloc __libc_malloc +#define calloc __libc_calloc +#define realloc undef +#define free undef struct binding { struct binding *next; @@ -34,9 +40,11 @@ static char *gettextdir(const char *domainname, size_t *dirlen) return 0; } +static volatile int lock[1]; +volatile int *const __gettext_lockptr = lock; + char *bindtextdomain(const char *domainname, const char *dirname) { - static volatile int lock[1]; struct binding *p, *q; if (!domainname) return 0;