diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-09-26 15:27:21 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-09-26 15:27:21 +0000 |
commit | 6a95b43a5e864f811c7c8083f598dc07f7ea9d17 (patch) | |
tree | c34d53e1cc8858dda8ce2c662fe75cfb42465566 /libc/misc/internals/__uClibc_main.c | |
parent | f9edcc7a26d11613916b169a37dfb399b88fc09b (diff) |
Replace _LIBC_REENTRANT with __UCLIBC_HAS_THREADS__
-Erik
Diffstat (limited to 'libc/misc/internals/__uClibc_main.c')
-rw-r--r-- | libc/misc/internals/__uClibc_main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libc/misc/internals/__uClibc_main.c b/libc/misc/internals/__uClibc_main.c index e9af10dcd..53f897d9f 100644 --- a/libc/misc/internals/__uClibc_main.c +++ b/libc/misc/internals/__uClibc_main.c @@ -21,7 +21,6 @@ */ extern int main(int argc, char **argv, char **envp); extern void weak_function _init(void); -extern void weak_function __pthread_initialize_minimal(void); extern void weak_function _fini(void); extern void weak_function _stdio_init(void); extern int *weak_const_function __errno_location(void); @@ -30,6 +29,9 @@ extern int weak_function atexit(void (*function)(void)); #ifdef __UCLIBC_HAS_LOCALE__ extern void weak_function _locale_init(void); #endif +#ifdef __UCLIBC_HAS_THREADS__ +extern void weak_function __pthread_initialize_minimal(void); +#endif @@ -57,7 +59,7 @@ __uClibc_main(int argc, char **argv, char **envp) __environ = envp; } -#ifdef _LIBC_REENTRANT +#ifdef __UCLIBC_HAS_THREADS__ if (likely(__pthread_initialize_minimal!=NULL)) __pthread_initialize_minimal(); #endif |