diff --git a/Makefile.PL b/Makefile.PL index aa2244c..548ca38 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -262,7 +262,7 @@ if ( $^O eq 'cygwin') { if ( $Config{d_usleep} || $Config{osname} =~ m/linux/ ) { push @CC_DEFINE, '-DHAVE_USLEEP=1'; } -unless ( $Config{usethreads} ) { +if ( !$Config{usethreads} and $Config{libs} !~ /pthreads/ ) { push @CC_DEFINE, '-DTHREADSAFE=0'; } if ($^O eq 'hpux' and $Config{osvers} <= 10.20) {