Failed to compile on OmniOS due to TCP_INFO

This commit is contained in:
Gerhard Rieger 2021-11-08 20:57:00 +01:00
parent 47674f924a
commit 33a5019b18
3 changed files with 9 additions and 2 deletions

View file

@ -1,4 +1,9 @@
 
Corrections:
Socat 1.7.4.2 did not compile on OmniOS (and probably other OpenSolaris
distributions)
Thanks to Andy Fiddaman for sending a patch
####################### V 1.7.4.2: ####################### V 1.7.4.2:
Corrections: Corrections:

View file

@ -1 +1 @@
"1.7.4.2" "1.7.4.2+"

View file

@ -897,12 +897,14 @@ int tcpan(int fd, FILE *outfile) {
++optname; ++optname;
} }
#ifdef TCP_INFO
tcpan2(fd, outfile); tcpan2(fd, outfile);
#endif
return 0; return 0;
} }
#endif /* WITH_TCP */ #endif /* WITH_TCP */
#if WITH_TCP #if WITH_TCP && defined(TCP_INFO)
int tcpan2(int fd, FILE *outfile) { int tcpan2(int fd, FILE *outfile) {
struct tcp_info tcpinfo; struct tcp_info tcpinfo;