mirror of
https://github.com/DBD-SQLite/DBD-SQLite
synced 2025-06-07 14:19:10 -04:00
Set THREADSAFE=0 only if usethreads is undef and pthreads is not linked
This commit is contained in:
parent
797b724b43
commit
8861380590
1 changed files with 1 additions and 1 deletions
|
@ -262,7 +262,7 @@ if ( $^O eq 'cygwin') {
|
||||||
if ( $Config{d_usleep} || $Config{osname} =~ m/linux/ ) {
|
if ( $Config{d_usleep} || $Config{osname} =~ m/linux/ ) {
|
||||||
push @CC_DEFINE, '-DHAVE_USLEEP=1';
|
push @CC_DEFINE, '-DHAVE_USLEEP=1';
|
||||||
}
|
}
|
||||||
unless ( $Config{usethreads} ) {
|
if ( !$Config{usethreads} and $Config{libs} !~ /pthreads/ ) {
|
||||||
push @CC_DEFINE, '-DTHREADSAFE=0';
|
push @CC_DEFINE, '-DTHREADSAFE=0';
|
||||||
}
|
}
|
||||||
if ($^O eq 'hpux' and $Config{osvers} <= 10.20) {
|
if ($^O eq 'hpux' and $Config{osvers} <= 10.20) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue