From 797b724b4347d3e02fed1368e71a8b5d83421a07 Mon Sep 17 00:00:00 2001 From: Kenichi Ishigaki Date: Sat, 17 Apr 2021 18:30:10 +0900 Subject: [PATCH] Revert "Do not force THREADSAFE=0 when perl does not have usethreads (fix #69)" This reverts commit b56f872c82d34ed16b4710f83b741b11084d438f. --- Makefile.PL | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile.PL b/Makefile.PL index c4995cc..aa2244c 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -262,6 +262,9 @@ if ( $^O eq 'cygwin') { if ( $Config{d_usleep} || $Config{osname} =~ m/linux/ ) { push @CC_DEFINE, '-DHAVE_USLEEP=1'; } +unless ( $Config{usethreads} ) { + push @CC_DEFINE, '-DTHREADSAFE=0'; +} if ($^O eq 'hpux' and $Config{osvers} <= 10.20) { # HP-UX 10.20 does not have pread () at all push @CC_DEFINE,