From aa5ec5f5856da3b406f16128f3ee1bfb942e6726 Mon Sep 17 00:00:00 2001 From: Kenichi Ishigaki Date: Wed, 9 Oct 2013 17:06:20 +0900 Subject: [PATCH] define SQLITE_TEMP_STORE=2 for cygwin to resolve RT #89351 See also the following for details and patches: - http://sqlite.1065341.n5.nabble.com/Bug-in-Cygwin-SQLite-temporary-table-creation-fails-tp66277p66295.html --- Makefile.PL | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile.PL b/Makefile.PL index b46d7a9..ee8d06a 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -223,6 +223,9 @@ my @CC_DEFINE = ( '-DSQLITE_ENABLE_STAT3', '-DNDEBUG=1', ); +if ( $^O eq 'cygwin') { + push @CC_DEFINE, '-DSQLITE_TEMP_STORE=2'; +} if ( $Config{d_usleep} || $Config{osname} =~ m/linux/ ) { push @CC_DEFINE, '-DHAVE_USLEEP=1'; }