summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2020-12-03 08:40:07 +0800
committerGitHub <[email protected]>2020-12-03 08:40:07 +0800
commitd7c367d38ba7f2ac1a0f44abf5d8b95c65041bba (patch)
tree111d6adddce9bedecc2976bdf58b1c8415ad417f
parent9d607270581456568dc637538d3ee891a2119d9b (diff)
parent54143409cabf799f04ee6ee0480d6ae939087f9f (diff)
Merge pull request #4070 from mysterywolf/getline
[bug] [libc] 增加#include <rtconfig.h> 防止开启termios功能后报错
-rw-r--r--components/libc/compilers/common/termios.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/libc/compilers/common/termios.h b/components/libc/compilers/common/termios.h
index ee2b4d5718..414d0c0cb3 100644
--- a/components/libc/compilers/common/termios.h
+++ b/components/libc/compilers/common/termios.h
@@ -9,6 +9,8 @@
#ifndef _TERMIOS_H__
#define _TERMIOS_H__
+#include <rtconfig.h>
+
#ifdef RT_USING_POSIX_TERMIOS
#include <sys/types.h>
#include <posix_termios.h>