I've included three patches against stunnel 3.19 that will allow compilation on Mac OS X and Darwin. Description: common.h.patch The pthread implamentation in Mac OS X and Darwin is slightly broken. pthread_sigmask doesn't exist so if the compile flag __APPLE__ is defined, then redifine pthread_sigmask to sigprocmask. config.sub.patch and config.guess.patch These patches update the config.sub and config.guess to include information to guess Mac OS X and Darwin systems. The common.h.patch is my own code and I am releasing under the BSD License. The config patches are not my own changes and I'm not sure exactly who did the chances. The config.sub and config.guess that the patches are made with are from the Developer Tools that Apple distributes. (i think they are just newer versions of your config.guess and config.sub) Regards, Aaron