diff options
| author | Lim-LinYuanbo <[email protected]> | 2021-10-27 11:14:33 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-10-27 11:14:33 +0800 |
| commit | 078c3c5991e3024664fe7a51878874e02bf107dc (patch) | |
| tree | 1dde9d1e6b32c07d5c803088f3ce6455a520cd04 /components/libc/compilers/common/sys | |
| parent | 48ffde55a2562d99c627e4f7e24a6a111c5b80e7 (diff) | |
| parent | 31bf735d2159995358315036be1529523ac96d7d (diff) | |
Merge branch 'master' into master
Diffstat (limited to 'components/libc/compilers/common/sys')
| -rw-r--r-- | components/libc/compilers/common/sys/ioctl.h | 6 |
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 |
