packet.c does not compile because IP_TOS is undeclared. IP_TOS appears inside the function packet_set_tos(). That function is called only if IP_TOS is defined, but the function is defined even when IP_TOS is undeclared. That makes the error. Solution: To define packet_set_tos() only when IP_TOS is declared. I have done that and OpenSSH builds and runs right in a Sparc with SunOs4.1.3_U1, gcc2.95.3 an Openssl-0.9.7b.
This was already reported and fixed
Mass change of RESOLVED bugs to CLOSED