summaryrefslogtreecommitdiff
path: root/components/libc/compilers/common/sys
diff options
context:
space:
mode:
authorguo <[email protected]>2021-10-14 11:01:17 +0800
committerGitHub <[email protected]>2021-10-14 11:01:17 +0800
commit5ab2901dad0f2e88300b5218b41ccb57400dcbf9 (patch)
tree7d89162c71b90521fb5406f508be0a14f024eb44 /components/libc/compilers/common/sys
parent33263d7e4ec22b118d0407ec7488ccfa60a8a0a1 (diff)
parent8f6260146c8c157b02a263925239389260e958c0 (diff)
Merge pull request #5168 from mysterywolf/str
Diffstat (limited to 'components/libc/compilers/common/sys')
-rw-r--r--components/libc/compilers/common/sys/ioctl.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/components/libc/compilers/common/sys/ioctl.h b/components/libc/compilers/common/sys/ioctl.h
index b926a71875..04f73837bc 100644
--- a/components/libc/compilers/common/sys/ioctl.h
+++ b/components/libc/compilers/common/sys/ioctl.h
@@ -15,6 +15,10 @@
#include <dfs_posix.h>
#endif
+#ifdef _WIN32
+#include <winsock.h>
+#endif
+
struct winsize {
unsigned short ws_row;
unsigned short ws_col;
@@ -35,8 +39,8 @@ struct winsize {
#define FIONREAD _IOR('f', 127, int) /* get # bytes to read */
#define FIONBIO _IOW('f', 126, int) /* set/clear non-blocking i/o */
-#define FIONWRITE _IOR('f', 121, int) /* get # bytes outstanding in send queue */
#endif
+#define FIONWRITE _IOR('f', 121, int) /* get # bytes outstanding in send queue */
#define TCGETS 0x5401
#define TCSETS 0x5402