diff options
author | Ian Lance Taylor <iant@golang.org> | 2021-09-13 10:37:49 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2021-09-13 10:37:49 -0700 |
commit | e252b51ccde010cbd2a146485d8045103cd99533 (patch) | |
tree | e060f101cdc32bf5e520de8e5275db9d4236b74c /gcc/ada/s-oscons-tmplt.c | |
parent | f10c7c4596dda99d2ee872c995ae4aeda65adbdf (diff) | |
parent | 104c05c5284b7822d770ee51a7d91946c7e56d50 (diff) | |
download | gcc-e252b51ccde010cbd2a146485d8045103cd99533.zip gcc-e252b51ccde010cbd2a146485d8045103cd99533.tar.gz gcc-e252b51ccde010cbd2a146485d8045103cd99533.tar.bz2 |
Merge from trunk revision 104c05c5284b7822d770ee51a7d91946c7e56d50.
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 |