From 1330a70207b635b9aebae7ebca620360e9cbd243 Mon Sep 17 00:00:00 2001 From: pinhaozhang Date: Fri, 9 Jun 2017 12:18:40 +0800 Subject: [PATCH] modified: components/libc/newlib/libc.c --- components/libc/newlib/libc.c | 3 +-- 1 file changed, 1 insertion(+), 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