summaryrefslogtreecommitdiff
path: root/components/libc/termios
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2020-09-04 08:49:11 +0800
committerGitHub <[email protected]>2020-09-04 08:49:11 +0800
commit86e4216275ded5f6e2cb28bbc33e754942910173 (patch)
tree8b740b0b3d86edf6b9945ee61af29221ca176652 /components/libc/termios
parentcf442c2c2edf32a41aa309a7d4f702014aa0ac9d (diff)
parent5721fa8990e4178a427564a1e546df507c87c2b4 (diff)
Merge pull request #3869 from mysterywolf/master
[fix/add/bug] 修改armlibc多处,重新提交了[请求优先通过!!]
Diffstat (limited to 'components/libc/termios')
-rw-r--r--components/libc/termios/posix_termios.c9
-rw-r--r--components/libc/termios/posix_termios.h4
2 files changed, 3 insertions, 10 deletions
diff --git a/components/libc/termios/posix_termios.c b/components/libc/termios/posix_termios.c
index 75c876dd33..9c736c3184 100644
--- a/components/libc/termios/posix_termios.c
+++ b/components/libc/termios/posix_termios.c
@@ -5,7 +5,7 @@
*
* Change Logs:
* Date Author Notes
- * 2017/08/30 Bernard The first version
+ * 2017/08/30 Bernard The first version
*/
#include <stdlib.h>
#include <string.h>
@@ -111,13 +111,6 @@ int tcdrain(int fd)
return 0;
}
-int isatty (int fd)
-{
- struct termios term;
-
- return tcgetattr (fd, &term) == 0;
-}
-
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
void cfmakeraw(struct termios *t)
{
diff --git a/components/libc/termios/posix_termios.h b/components/libc/termios/posix_termios.h
index 6d4be129ff..c61191b7dc 100644
--- a/components/libc/termios/posix_termios.h
+++ b/components/libc/termios/posix_termios.h
@@ -5,13 +5,13 @@
*
* Change Logs:
* Date Author Notes
- * 2017/08/30 Bernard The first version
+ * 2017/08/30 Bernard The first version
*/
#ifndef TERMIOS_H__
#define TERMIOS_H__
#include <rtthread.h>
-#include <termios.h>
+#include <sys/types.h>
#ifdef __cplusplus
extern "C" {