소스 검색

modified: components/libc/newlib/libc.c

pinhaozhang 8 년 전
부모
커밋
1330a70207
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      components/libc/newlib/libc.c

+ 1 - 2
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