Explorar o código

modified: components/libc/newlib/libc.c

pinhaozhang %!s(int64=8) %!d(string=hai) anos
pai
achega
1330a70207
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  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