소스 검색

增加#include <rtconfig.h> 防止开启termios功能后报错

Meco Man 4 년 전
부모
커밋
54143409ca
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      components/libc/compilers/common/termios.h

+ 2 - 0
components/libc/compilers/common/termios.h

@@ -9,6 +9,8 @@
 #ifndef _TERMIOS_H__
 #ifndef _TERMIOS_H__
 #define _TERMIOS_H__
 #define _TERMIOS_H__
 
 
+#include <rtconfig.h>
+
 #ifdef RT_USING_POSIX_TERMIOS
 #ifdef RT_USING_POSIX_TERMIOS
 #include <sys/types.h>
 #include <sys/types.h>
 #include <posix_termios.h>
 #include <posix_termios.h>