diff options
Diffstat (limited to 'gcc/ada/s-oscons-tmplt.c')
-rw-r--r-- | gcc/ada/s-oscons-tmplt.c | 47 |
1 files changed, 40 insertions, 7 deletions
diff --git a/gcc/ada/s-oscons-tmplt.c b/gcc/ada/s-oscons-tmplt.c index 582c35e..54fa2f1 100644 --- a/gcc/ada/s-oscons-tmplt.c +++ b/gcc/ada/s-oscons-tmplt.c @@ -7,7 +7,7 @@ -- -- -- S p e c -- -- -- --- Copyright (C) 2000-2020, Free Software Foundation, Inc. -- +-- Copyright (C) 2000-2021, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- @@ -1463,14 +1463,8 @@ CND(MSG_PEEK, "Peek at incoming data") CND(MSG_EOR, "Send end of record") #ifndef MSG_WAITALL -#ifdef __MINWGW32__ -/* The value of MSG_WAITALL is 8. Nevertheless winsock.h doesn't - define it, but it is still usable as we link to winsock2 API. */ -# define MSG_WAITALL (1 << 3) -#else # define MSG_WAITALL -1 #endif -#endif CND(MSG_WAITALL, "Wait for full reception") #ifndef MSG_NOSIGNAL @@ -1501,6 +1495,39 @@ CNS(MSG_Forced_Flags, "") #endif CND(TCP_NODELAY, "Do not coalesce packets") +#ifndef TCP_KEEPCNT +#ifdef __MINGW32__ +/* Windows headers can be too old to have all available constants. + * We know this one. */ +# define TCP_KEEPCNT 16 +#else +# define TCP_KEEPCNT -1 +#endif +#endif +CND(TCP_KEEPCNT, "Maximum number of keepalive probes") + +#ifndef TCP_KEEPIDLE +#ifdef __MINGW32__ +/* Windows headers can be too old to have all available constants. + * We know this one. */ +# define TCP_KEEPIDLE 3 +#else +# define TCP_KEEPIDLE -1 +#endif +#endif +CND(TCP_KEEPIDLE, "Idle time before TCP starts sending keepalive probes") + +#ifndef TCP_KEEPINTVL +#ifdef __MINGW32__ +/* Windows headers can be too old to have all available constants. + * We know this one. */ +# define TCP_KEEPINTVL 17 +#else +# define TCP_KEEPINTVL -1 +#endif +#endif +CND(TCP_KEEPINTVL, "Time between individual keepalive probes") + #ifndef SO_REUSEADDR # define SO_REUSEADDR -1 #endif @@ -1662,8 +1689,14 @@ CND(IPV6_DSTOPTS, "Set the destination options delivery") CND(IPV6_HOPOPTS, "Set the hop options delivery") #ifndef IPV6_FLOWINFO +#ifdef __linux__ +/* The IPV6_FLOWINFO is defined in linux/in6.h, but we can't include it because + * of conflicts with other headers. */ +# define IPV6_FLOWINFO 11 +#else # define IPV6_FLOWINFO -1 #endif +#endif CND(IPV6_FLOWINFO, "Set the flow ID delivery") #ifndef IPV6_HOPLIMIT |