From 8cdfaf36ae7216e543aa9d4fb1a483ec7eabcaa1 Mon Sep 17 00:00:00 2001 From: "Evgeniy A. Dushistov" Date: Sat, 30 May 2020 02:32:19 +0300 Subject: [PATCH] little speedup for bundled sqlite3.c --- libsqlite3-sys/build.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libsqlite3-sys/build.rs b/libsqlite3-sys/build.rs index b10989b..e8b6adb 100644 --- a/libsqlite3-sys/build.rs +++ b/libsqlite3-sys/build.rs @@ -104,6 +104,9 @@ mod build_bundled { } else { cfg.flag("-DSQLITE_HAVE_ISNAN"); } + if cfg!(not(target_os = "windows")) { + cfg.flag("-DHAVE_LOCALTIME_R"); + } if cfg!(feature = "unlock_notify") { cfg.flag("-DSQLITE_ENABLE_UNLOCK_NOTIFY"); }