1
0
Fork 0
mirror of https://github.com/DBD-SQLite/DBD-SQLite synced 2025-06-07 06:08:38 -04:00

add SQLITE_WITHOUT_ZONEMALLOC for older MacOS X

This commit is contained in:
Kenichi Ishigaki 2012-05-17 01:08:35 +00:00
parent 2f71f046e4
commit 9d6da1fdca

View file

@ -238,6 +238,10 @@ if ($^O eq 'hpux' and $Config{osvers} <= 10.20) {
'-DMAP_FAILED="((void *)-1)"';
}
if ($^O eq 'darwin') {
my ($osmajor, $osminor) = split /\./, $Config{osvers};
if ($osmajor < 8 or ($osmajor == 8 && $osminor <= 11)) {
push @CC_DEFINE, '-DSQLITE_WITHOUT_ZONEMALLOC=1';
}
push @CC_DEFINE, '-DSQLITE_ENABLE_LOCKING_STYLE=0';
}