瀏覽代碼

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