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

This commit is contained in:
Meco Man 2020-11-23 01:14:44 +08:00 committed by GitHub
parent 3634621815
commit 54143409ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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>