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
45feda65e9978b9ea2313d8201ec6dc2cce963a2
Parent
df3ada575c9e3f0…
2 files changed
+1
-1
+2
+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 |