diff options
| author | pinhaozhang <[email protected]> | 2017-06-09 12:18:40 +0800 |
|---|---|---|
| committer | pinhaozhang <[email protected]> | 2017-06-09 12:18:40 +0800 |
| commit | 1330a70207b635b9aebae7ebca620360e9cbd243 (patch) | |
| tree | 3a57b426b72f3070c23060f8ff43d2e00b561aea /components/libc | |
| parent | 279fac7cbb000c9b65c49a8a075bb7037410b897 (diff) | |
modified: components/libc/newlib/libc.c
Diffstat (limited to 'components/libc')
| -rw-r--r-- | components/libc/newlib/libc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/components/libc/newlib/libc.c b/components/libc/newlib/libc.c index e1a2c54074..8f97e1c8b4 100644 --- a/components/libc/newlib/libc.c +++ b/components/libc/newlib/libc.c @@ -47,8 +47,7 @@ int libc_system_init(void) /* set PATH and HOME */ putenv("PATH=/bin"); putenv("HOME=/home"); - -#ifdef RT_USING_PTHREADS +#if defined RT_USING_PTHREADS && !defined RT_USING_COMPONENTS_INIT pthread_system_init(); #endif |
