mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-26 01:07:21 +00:00
[bug fix]对各个libc库的termios.h增加宏定义,以防止在termios函数没有定义时,将posix_termios.h头文件引入导致报错
This commit is contained in:
@@ -9,7 +9,9 @@
|
||||
#ifndef _TERMIOS_H__
|
||||
#define _TERMIOS_H__
|
||||
|
||||
#ifdef RT_USING_POSIX_TERMIOS
|
||||
#include <sys/types.h>
|
||||
#include <posix_termios.h>
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -9,7 +9,9 @@
|
||||
#ifndef _TERMIOS_H__
|
||||
#define _TERMIOS_H__
|
||||
|
||||
#ifdef RT_USING_POSIX_TERMIOS
|
||||
#include <sys/types.h>
|
||||
#include <posix_termios.h>
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -9,7 +9,9 @@
|
||||
#ifndef _TERMIOS_H__
|
||||
#define _TERMIOS_H__
|
||||
|
||||
#ifdef RT_USING_POSIX_TERMIOS
|
||||
#include <sys/types.h>
|
||||
#include <posix_termios.h>
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user