dest-unreach / socat / contrib / nonlinux-compile
socat version 2 release candidates up to beta-4 had only been test on Linux. A structure components name that had been changed in the code was forgotten in a branch that is compiled only on some other platforms, especially BSD and MacOS. Therefore compiling failed for these systems.
Michael Terzo and others contributed fixes to this problem.
Apply these patches to socat 2.0.0-b2, -b3, or -b4 source.
This fix will be in all versions following 2.0.0-b4