summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormysterywolf <[email protected]>2020-09-02 10:33:37 +0800
committermysterywolf <[email protected]>2020-09-02 10:33:37 +0800
commit5721fa8990e4178a427564a1e546df507c87c2b4 (patch)
tree08f4a616a2a254bc4520ae946b578e4e167efe27
parenta162640f89933847d411513e69082325538411df (diff)
Signed-off-by: mysterywolf
-rw-r--r--components/libc/compilers/armlibc/fcntl.h2
-rw-r--r--components/libc/compilers/dlib/sys/unistd.h4
2 files changed, 6 insertions, 0 deletions
diff --git a/components/libc/compilers/armlibc/fcntl.h b/components/libc/compilers/armlibc/fcntl.h
index 80cf1b4409..3e650a8471 100644
--- a/components/libc/compilers/armlibc/fcntl.h
+++ b/components/libc/compilers/armlibc/fcntl.h
@@ -9,6 +9,8 @@
#ifndef FCNTL_H__
#define FCNTL_H__
+#include <rtconfig.h>
+
#ifdef RT_USING_DFS
#include <dfs_posix.h>
#endif
diff --git a/components/libc/compilers/dlib/sys/unistd.h b/components/libc/compilers/dlib/sys/unistd.h
index 29f68f24f8..9564daba8d 100644
--- a/components/libc/compilers/dlib/sys/unistd.h
+++ b/components/libc/compilers/dlib/sys/unistd.h
@@ -36,4 +36,8 @@
#endif
+
+int isatty (int fd);
+char * ttyname (int desc);
+
#endif /* _SYS_UNISTD_H */