summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Python/mystrtoul.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Python/mystrtoul.c b/Python/mystrtoul.c
index a646283..4181ea1 100644
--- a/Python/mystrtoul.c
+++ b/Python/mystrtoul.c
@@ -26,6 +26,10 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "config.h"
#endif
+#ifdef WITH_THREAD
+#define _REENTRANT
+#endif
+
/* Convert a possibly signed character to a nonnegative int */
/* XXX This assumes characters are 8 bits wide */
#ifdef __CHAR_UNSIGNED__