diff options
| author | zhkag <[email protected]> | 2023-05-05 15:50:29 +0800 |
|---|---|---|
| committer | Man, Jianting (Meco) <[email protected]> | 2023-05-05 19:29:38 -0400 |
| commit | 3419e591da044749aed74e65d33de74b4668e037 (patch) | |
| tree | 27f4dcbfede31381d07a1f9d8174e5bc3ca48867 /components/libc/compilers/common | |
| parent | 94ed48d3380195d67187ff9ed73f21821d549614 (diff) | |
[libc] redirecting header sys/ioctl to bits/ioctl
Diffstat (limited to 'components/libc/compilers/common')
| -rw-r--r-- | components/libc/compilers/common/include/sys/ioctl.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/components/libc/compilers/common/include/sys/ioctl.h b/components/libc/compilers/common/include/sys/ioctl.h index e33f19cd6f..ab0c069550 100644 --- a/components/libc/compilers/common/include/sys/ioctl.h +++ b/components/libc/compilers/common/include/sys/ioctl.h @@ -23,6 +23,9 @@ struct winsize unsigned short ws_ypixel; }; +#ifdef RT_USING_MUSLLIBC +#include <bits/ioctl.h> +#else /* * Direction bits, which any architecture can choose to override * before including this file. @@ -72,10 +75,6 @@ struct winsize #define FIOASYNC _IOW('f', 125, int) /* set/clear async i/o */ #endif -#ifndef FIONWRITE -#define FIONWRITE _IOR('f', 121, int) /* get # bytes outstanding in send queue */ -#endif - /* Socket I/O Controls */ #ifndef SIOCSHIWAT #define SIOCSHIWAT _IOW('s', 0, int) /* set high watermark */ @@ -206,6 +205,12 @@ struct winsize #define SIOCGSTAMP 0x8906 #define SIOCGSTAMPNS 0x8907 +#endif + +#ifndef FIONWRITE +#define FIONWRITE _IOR('f', 121, int) /* get # bytes outstanding in send queue */ +#endif + #define SIOCADDRT 0x890B #define SIOCDELRT 0x890C #define SIOCRTMSG 0x890D |
