소스 검색

[Libc] Disable ENV when disable DFS.

Bernard Xiong 7 년 전
부모
커밋
ad42abb933
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      components/libc/compilers/newlib/libc.c

+ 1 - 1
components/libc/compilers/newlib/libc.c

@@ -35,11 +35,11 @@ int libc_system_init(void)
         libc_stdio_set_console(dev_console->parent.name, O_WRONLY);
     #endif
     }
-#endif
 
     /* set PATH and HOME */
     putenv("PATH=/bin");
     putenv("HOME=/home");
+#endif
 
 #if defined RT_USING_PTHREADS && !defined RT_USING_COMPONENTS_INIT
     pthread_system_init();