Add a hack for Solaris threads (why not, there are zillions of

hacks for Windows and DOS here already :-( ).
This commit is contained in:
Guido van Rossum 1996-06-11 18:40:02 +00:00
parent 8bac546e11
commit 2e1beeac2e
1 changed files with 6 additions and 0 deletions

View File

@ -41,6 +41,12 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#define UsingSharedLibs
#endif
#ifdef WITH_THREAD
/* This turns errno in a thread-safe function on Solaris.
Wonder what it will break though :-( */
#define _REENTRANT
#endif
#include <stdio.h>
#include <string.h>
#include <errno.h>