sslstream.c:715: error: `FIONBIO' undeclared (first use in this function)
Did you also upgrade your copy of Open Solaris? FIONBIO is not part of OpenSSL, it's an ioctl that's used to switch a socket to non-blocking mode, and should be part of your operating system, or at least, the C runtime.
Both sslstream.c and telnetstr.c use it to put the socket in non-blocking mode. They do this:
u_long ioctlarg = 1; ioctl(sockfd, FIONBIO, &ioctlarg);As far as I know, this is part of Mike Madore's original code in the emulator... it's always been that way, this is the first time I've heard of a problems with it.