Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2e1beea

Browse files
committed
Add a hack for Solaris threads (why not, there are zillions of
hacks for Windows and DOS here already :-( ).
1 parent 8bac546 commit 2e1beea

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Include/allobjects.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
4141
#define UsingSharedLibs
4242
#endif
4343

44+
#ifdef WITH_THREAD
45+
/* This turns errno in a thread-safe function on Solaris.
46+
Wonder what it will break though :-( */
47+
#define _REENTRANT
48+
#endif
49+
4450
#include <stdio.h>
4551
#include <string.h>
4652
#include <errno.h>

0 commit comments

Comments
 (0)