This should allow OS X to at least build. It looks like Solaris does not have openpty() and cfmakeraw()
This should allow OS X to at least build. It looks like Solaris does not have openpty() and cfmakeraw()