diff options
| author | bernard <[email protected]> | 2017-11-30 23:56:52 +0800 |
|---|---|---|
| committer | bernard <[email protected]> | 2017-11-30 23:56:52 +0800 |
| commit | ae7237dc53540897a9ea40e145122276bd0b9ddc (patch) | |
| tree | d49a61e59202c15390260732482cf6464358ba6a /include/libc/libc_ioctl.h | |
| parent | 2a83353e5f0ff1888feb528689bd4c9e2edeb566 (diff) | |
[BSP] Fix the WIN32 compiling issue.
rename _errno to __rt_errno for conflict in WIN32.
Diffstat (limited to 'include/libc/libc_ioctl.h')
| -rw-r--r-- | include/libc/libc_ioctl.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/libc/libc_ioctl.h b/include/libc/libc_ioctl.h index 49191a8548..b61866a524 100644 --- a/include/libc/libc_ioctl.h +++ b/include/libc/libc_ioctl.h @@ -30,6 +30,7 @@ #define _IOC_WRITE 1U #define _IOC_READ 2U +#ifndef _WIN32 #define _IO(a,b) _IOC(_IOC_NONE,(a),(b),0) #define _IOW(a,b,c) _IOC(_IOC_WRITE,(a),(b),sizeof(c)) #define _IOR(a,b,c) _IOC(_IOC_READ,(a),(b),sizeof(c)) @@ -39,6 +40,7 @@ #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 TCGETS 0x5401 #define TCSETS 0x5402 @@ -98,7 +100,11 @@ #define FIONCLEX 0x5450 #define FIOCLEX 0x5451 + +#ifndef _WIN32 #define FIOASYNC 0x5452 +#endif + #define TIOCSERCONFIG 0x5453 #define TIOCSERGWILD 0x5454 #define TIOCSERSWILD 0x5455 |
