Fossil SCM

Fix build with default Makefile for platforms which don't have getloadavg() function (e.g. Haiku/Cygwin). Patch provided by Joseph Prostko.

jan.nijtmans 2014-04-02 06:58 trunk
Commit 7023de95044817c60504f093acb62c9a4fffa33b
1 file changed +5
+5
--- auto.def
+++ auto.def
@@ -248,10 +248,15 @@
248248
if {[string match *mingw* [get-define host]]} {
249249
define-append LIBS -lwsock32
250250
}
251251
}
252252
cc-check-function-in-lib iconv iconv
253
+
254
+# Check for getloadavg(), and if it doesn't exist, define FOSSIL_OMIT_LOAD_AVERAGE
255
+if {![cc-check-functions getloadavg]} {
256
+ define FOSSIL_OMIT_LOAD_AVERAGE 1
257
+}
253258
254259
# Check for getpassphrase() for Solaris 10 where getpass() truncates to 10 chars
255260
if {![cc-check-functions getpassphrase]} {
256261
# Haiku needs this
257262
cc-check-function-in-lib getpass bsd
258263
--- auto.def
+++ auto.def
@@ -248,10 +248,15 @@
248 if {[string match *mingw* [get-define host]]} {
249 define-append LIBS -lwsock32
250 }
251 }
252 cc-check-function-in-lib iconv iconv
 
 
 
 
 
253
254 # Check for getpassphrase() for Solaris 10 where getpass() truncates to 10 chars
255 if {![cc-check-functions getpassphrase]} {
256 # Haiku needs this
257 cc-check-function-in-lib getpass bsd
258
--- auto.def
+++ auto.def
@@ -248,10 +248,15 @@
248 if {[string match *mingw* [get-define host]]} {
249 define-append LIBS -lwsock32
250 }
251 }
252 cc-check-function-in-lib iconv iconv
253
254 # Check for getloadavg(), and if it doesn't exist, define FOSSIL_OMIT_LOAD_AVERAGE
255 if {![cc-check-functions getloadavg]} {
256 define FOSSIL_OMIT_LOAD_AVERAGE 1
257 }
258
259 # Check for getpassphrase() for Solaris 10 where getpass() truncates to 10 chars
260 if {![cc-check-functions getpassphrase]} {
261 # Haiku needs this
262 cc-check-function-in-lib getpass bsd
263

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button