diff options
| author | Meco Man <[email protected]> | 2021-10-13 12:57:32 -0400 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2021-10-13 15:29:01 -0400 |
| commit | 8f6260146c8c157b02a263925239389260e958c0 (patch) | |
| tree | 7640d7588d0cf75966d94e493e13b05c08c7ab1e /components/libc/compilers/common/sys | |
| parent | 0873b8163bf425fdbbf0f528c54382c7923f54f1 (diff) | |
[libc][win32] improve win32 support
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 |
