sockets: ioctl: fix _IO macros for 16 bit platforms

See bug #57565
This commit is contained in:
Simon Goldschmidt 2020-01-10 20:46:23 +01:00
parent 5c2887a241
commit b43f081b9a

View File

@ -409,7 +409,7 @@ typedef struct ipv6_mreq {
* we restrict parameters to at most 128 bytes. * we restrict parameters to at most 128 bytes.
*/ */
#if !defined(FIONREAD) || !defined(FIONBIO) #if !defined(FIONREAD) || !defined(FIONBIO)
#define IOCPARM_MASK 0x7fU /* parameters must be < 128 bytes */ #define IOCPARM_MASK 0x7fUL /* parameters must be < 128 bytes */
#define IOC_VOID 0x20000000UL /* no parameters */ #define IOC_VOID 0x20000000UL /* no parameters */
#define IOC_OUT 0x40000000UL /* copy out parameters */ #define IOC_OUT 0x40000000UL /* copy out parameters */
#define IOC_IN 0x80000000UL /* copy in parameters */ #define IOC_IN 0x80000000UL /* copy in parameters */