summaryrefslogtreecommitdiff
path: root/components/libc/compilers
diff options
context:
space:
mode:
authorJasonJiaJie <[email protected]>2017-12-07 17:52:20 +0800
committerBernard Xiong <[email protected]>2017-12-07 18:32:06 +0800
commit3454484346f471ccdbee2cb1fc654edf37a388b0 (patch)
tree0378dc2047dc96a326b4498ea93957e6102cffff /components/libc/compilers
parentde0a201e4490d2692e91768a2acb619680d3b89d (diff)
[Termios]Fix compile error for gcc and iar.
Fix compile error for gcc and iar.Add termios.h to newlib and dlib
Diffstat (limited to 'components/libc/compilers')
-rw-r--r--components/libc/compilers/dlib/termios.h7
-rw-r--r--components/libc/compilers/newlib/termios.h7
2 files changed, 14 insertions, 0 deletions
diff --git a/components/libc/compilers/dlib/termios.h b/components/libc/compilers/dlib/termios.h
new file mode 100644
index 0000000000..0b54066a76
--- /dev/null
+++ b/components/libc/compilers/dlib/termios.h
@@ -0,0 +1,7 @@
+#ifndef _TERMIOS_H__
+#define _TERMIOS_H__
+
+#include <sys/types.h>
+#include <posix_termios.h>
+
+#endif
diff --git a/components/libc/compilers/newlib/termios.h b/components/libc/compilers/newlib/termios.h
new file mode 100644
index 0000000000..0b54066a76
--- /dev/null
+++ b/components/libc/compilers/newlib/termios.h
@@ -0,0 +1,7 @@
+#ifndef _TERMIOS_H__
+#define _TERMIOS_H__
+
+#include <sys/types.h>
+#include <posix_termios.h>
+
+#endif