Fossil SCM
If the system knows about utime() and/or usleep(), allow the built-in SQLite to use those functions. e.g. for executing delays which are not a multiple of 1 second.
Commit
16f10763347f458e46fd5c3df19e407298fde947
Parent
92c2c1e5e18b19c…
4 files changed
+1
-1
+2
+5
+5
+1
-1
| --- Makefile.in | ||
| +++ Makefile.in | ||
| @@ -37,11 +37,11 @@ | ||
| 37 | 37 | # care about testing the end result, this can be blank. |
| 38 | 38 | # |
| 39 | 39 | TCLSH = tclsh |
| 40 | 40 | |
| 41 | 41 | LIB = @LDFLAGS@ @EXTRA_LDFLAGS@ @LIBS@ |
| 42 | -TCC += @EXTRA_CFLAGS@ @CPPFLAGS@ @CFLAGS@ -DHAVE_AUTOCONFIG_H | |
| 42 | +TCC += @EXTRA_CFLAGS@ @CPPFLAGS@ @CFLAGS@ -DHAVE_AUTOCONFIG_H -D_HAVE_SQLITE_CONFIG_H | |
| 43 | 43 | INSTALLDIR = $(DESTDIR)@prefix@/bin |
| 44 | 44 | USE_SYSTEM_SQLITE = @USE_SYSTEM_SQLITE@ |
| 45 | 45 | |
| 46 | 46 | include $(SRCDIR)/main.mk |
| 47 | 47 | |
| 48 | 48 |
| --- Makefile.in | |
| +++ Makefile.in | |
| @@ -37,11 +37,11 @@ | |
| 37 | # care about testing the end result, this can be blank. |
| 38 | # |
| 39 | TCLSH = tclsh |
| 40 | |
| 41 | LIB = @LDFLAGS@ @EXTRA_LDFLAGS@ @LIBS@ |
| 42 | TCC += @EXTRA_CFLAGS@ @CPPFLAGS@ @CFLAGS@ -DHAVE_AUTOCONFIG_H |
| 43 | INSTALLDIR = $(DESTDIR)@prefix@/bin |
| 44 | USE_SYSTEM_SQLITE = @USE_SYSTEM_SQLITE@ |
| 45 | |
| 46 | include $(SRCDIR)/main.mk |
| 47 | |
| 48 |
| --- Makefile.in | |
| +++ Makefile.in | |
| @@ -37,11 +37,11 @@ | |
| 37 | # care about testing the end result, this can be blank. |
| 38 | # |
| 39 | TCLSH = tclsh |
| 40 | |
| 41 | LIB = @LDFLAGS@ @EXTRA_LDFLAGS@ @LIBS@ |
| 42 | TCC += @EXTRA_CFLAGS@ @CPPFLAGS@ @CFLAGS@ -DHAVE_AUTOCONFIG_H -D_HAVE_SQLITE_CONFIG_H |
| 43 | INSTALLDIR = $(DESTDIR)@prefix@/bin |
| 44 | USE_SYSTEM_SQLITE = @USE_SYSTEM_SQLITE@ |
| 45 | |
| 46 | include $(SRCDIR)/main.mk |
| 47 | |
| 48 |
M
auto.def
+2
| --- auto.def | ||
| +++ auto.def | ||
| @@ -261,10 +261,12 @@ | ||
| 261 | 261 | if {[string match *mingw* [get-define host]]} { |
| 262 | 262 | define-append LIBS -lwsock32 |
| 263 | 263 | } |
| 264 | 264 | } |
| 265 | 265 | cc-check-function-in-lib iconv iconv |
| 266 | +cc-check-functions utime | |
| 267 | +cc-check-functions usleep | |
| 266 | 268 | |
| 267 | 269 | # Check for getloadavg(), and if it doesn't exist, define FOSSIL_OMIT_LOAD_AVERAGE |
| 268 | 270 | if {![cc-check-functions getloadavg]} { |
| 269 | 271 | define FOSSIL_OMIT_LOAD_AVERAGE 1 |
| 270 | 272 | msg-result "Load average support unavailable" |
| 271 | 273 |
| --- auto.def | |
| +++ auto.def | |
| @@ -261,10 +261,12 @@ | |
| 261 | if {[string match *mingw* [get-define host]]} { |
| 262 | define-append LIBS -lwsock32 |
| 263 | } |
| 264 | } |
| 265 | cc-check-function-in-lib iconv iconv |
| 266 | |
| 267 | # Check for getloadavg(), and if it doesn't exist, define FOSSIL_OMIT_LOAD_AVERAGE |
| 268 | if {![cc-check-functions getloadavg]} { |
| 269 | define FOSSIL_OMIT_LOAD_AVERAGE 1 |
| 270 | msg-result "Load average support unavailable" |
| 271 |
| --- auto.def | |
| +++ auto.def | |
| @@ -261,10 +261,12 @@ | |
| 261 | if {[string match *mingw* [get-define host]]} { |
| 262 | define-append LIBS -lwsock32 |
| 263 | } |
| 264 | } |
| 265 | cc-check-function-in-lib iconv iconv |
| 266 | cc-check-functions utime |
| 267 | cc-check-functions usleep |
| 268 | |
| 269 | # Check for getloadavg(), and if it doesn't exist, define FOSSIL_OMIT_LOAD_AVERAGE |
| 270 | if {![cc-check-functions getloadavg]} { |
| 271 | define FOSSIL_OMIT_LOAD_AVERAGE 1 |
| 272 | msg-result "Load average support unavailable" |
| 273 |
+5
| --- src/config.h | ||
| +++ src/config.h | ||
| @@ -24,10 +24,15 @@ | ||
| 24 | 24 | #define _LARGE_FILE 1 |
| 25 | 25 | #ifndef _FILE_OFFSET_BITS |
| 26 | 26 | # define _FILE_OFFSET_BITS 64 |
| 27 | 27 | #endif |
| 28 | 28 | #define _LARGEFILE_SOURCE 1 |
| 29 | + | |
| 30 | +/* Needed for various definitions... */ | |
| 31 | +#ifndef _GNU_SOURCE | |
| 32 | +# define _GNU_SOURCE | |
| 33 | +#endif | |
| 29 | 34 | |
| 30 | 35 | /* Make sure that in Win32 MinGW builds, _USE_32BIT_TIME_T is always defined. */ |
| 31 | 36 | #if defined(_WIN32) && !defined(_WIN64) && !defined(_MSC_VER) && !defined(_USE_32BIT_TIME_T) |
| 32 | 37 | # define _USE_32BIT_TIME_T |
| 33 | 38 | #endif |
| 34 | 39 |
| --- src/config.h | |
| +++ src/config.h | |
| @@ -24,10 +24,15 @@ | |
| 24 | #define _LARGE_FILE 1 |
| 25 | #ifndef _FILE_OFFSET_BITS |
| 26 | # define _FILE_OFFSET_BITS 64 |
| 27 | #endif |
| 28 | #define _LARGEFILE_SOURCE 1 |
| 29 | |
| 30 | /* Make sure that in Win32 MinGW builds, _USE_32BIT_TIME_T is always defined. */ |
| 31 | #if defined(_WIN32) && !defined(_WIN64) && !defined(_MSC_VER) && !defined(_USE_32BIT_TIME_T) |
| 32 | # define _USE_32BIT_TIME_T |
| 33 | #endif |
| 34 |
| --- src/config.h | |
| +++ src/config.h | |
| @@ -24,10 +24,15 @@ | |
| 24 | #define _LARGE_FILE 1 |
| 25 | #ifndef _FILE_OFFSET_BITS |
| 26 | # define _FILE_OFFSET_BITS 64 |
| 27 | #endif |
| 28 | #define _LARGEFILE_SOURCE 1 |
| 29 | |
| 30 | /* Needed for various definitions... */ |
| 31 | #ifndef _GNU_SOURCE |
| 32 | # define _GNU_SOURCE |
| 33 | #endif |
| 34 | |
| 35 | /* Make sure that in Win32 MinGW builds, _USE_32BIT_TIME_T is always defined. */ |
| 36 | #if defined(_WIN32) && !defined(_WIN64) && !defined(_MSC_VER) && !defined(_USE_32BIT_TIME_T) |
| 37 | # define _USE_32BIT_TIME_T |
| 38 | #endif |
| 39 |
+5
| --- src/config.h | ||
| +++ src/config.h | ||
| @@ -24,10 +24,15 @@ | ||
| 24 | 24 | #define _LARGE_FILE 1 |
| 25 | 25 | #ifndef _FILE_OFFSET_BITS |
| 26 | 26 | # define _FILE_OFFSET_BITS 64 |
| 27 | 27 | #endif |
| 28 | 28 | #define _LARGEFILE_SOURCE 1 |
| 29 | + | |
| 30 | +/* Needed for various definitions... */ | |
| 31 | +#ifndef _GNU_SOURCE | |
| 32 | +# define _GNU_SOURCE | |
| 33 | +#endif | |
| 29 | 34 | |
| 30 | 35 | /* Make sure that in Win32 MinGW builds, _USE_32BIT_TIME_T is always defined. */ |
| 31 | 36 | #if defined(_WIN32) && !defined(_WIN64) && !defined(_MSC_VER) && !defined(_USE_32BIT_TIME_T) |
| 32 | 37 | # define _USE_32BIT_TIME_T |
| 33 | 38 | #endif |
| 34 | 39 |
| --- src/config.h | |
| +++ src/config.h | |
| @@ -24,10 +24,15 @@ | |
| 24 | #define _LARGE_FILE 1 |
| 25 | #ifndef _FILE_OFFSET_BITS |
| 26 | # define _FILE_OFFSET_BITS 64 |
| 27 | #endif |
| 28 | #define _LARGEFILE_SOURCE 1 |
| 29 | |
| 30 | /* Make sure that in Win32 MinGW builds, _USE_32BIT_TIME_T is always defined. */ |
| 31 | #if defined(_WIN32) && !defined(_WIN64) && !defined(_MSC_VER) && !defined(_USE_32BIT_TIME_T) |
| 32 | # define _USE_32BIT_TIME_T |
| 33 | #endif |
| 34 |
| --- src/config.h | |
| +++ src/config.h | |
| @@ -24,10 +24,15 @@ | |
| 24 | #define _LARGE_FILE 1 |
| 25 | #ifndef _FILE_OFFSET_BITS |
| 26 | # define _FILE_OFFSET_BITS 64 |
| 27 | #endif |
| 28 | #define _LARGEFILE_SOURCE 1 |
| 29 | |
| 30 | /* Needed for various definitions... */ |
| 31 | #ifndef _GNU_SOURCE |
| 32 | # define _GNU_SOURCE |
| 33 | #endif |
| 34 | |
| 35 | /* Make sure that in Win32 MinGW builds, _USE_32BIT_TIME_T is always defined. */ |
| 36 | #if defined(_WIN32) && !defined(_WIN64) && !defined(_MSC_VER) && !defined(_USE_32BIT_TIME_T) |
| 37 | # define _USE_32BIT_TIME_T |
| 38 | #endif |
| 39 |