From b89b6f434939b3ab256afd476467e6189c3a4ab9 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 23 Feb 2018 13:33:23 +0100 Subject: [PATCH] Cygwin: socket.h: Add SIOCINQ, equivalent to FIONREAD Signed-off-by: Corinna Vinschen --- winsup/cygwin/include/asm/socket.h | 1 + 1 file changed, 1 insertion(+) diff --git a/winsup/cygwin/include/asm/socket.h b/winsup/cygwin/include/asm/socket.h index 8c0132997..712a46092 100644 --- a/winsup/cygwin/include/asm/socket.h +++ b/winsup/cygwin/include/asm/socket.h @@ -22,6 +22,7 @@ details. */ #define SIOCATMARK _IOR('s', 7, long) /* at oob mark? */ #define FIONREAD _IOR('f', 127, long) /* get # bytes to read */ +#define SIOCINQ FIONREAD /* Compatible with termios.h */ #define FIONBIO 0x8004667e /* set/clear non-blocking i/o */ #define FIOASYNC _IOW('f', 125, long) /* set/clear async i/o */ -- 2.43.5