Re: [fossil-users] getloadavg() detection
On Wed, Apr 2, 2014 at 2:56 AM, Jan Nijtmans wrote: > 2014-04-02 2:24 GMT+02:00 Joseph Prostko : >> Below is a patch via `fossil diff` to detect getloadavg() which allows >> Fossil to build cleanly on Haiku (and potentially other systems that >> would happen not to have getloadavg() available. > > > > Thanks! You're welcome. Thank you for committing the fix so quickly. - joe ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] getloadavg() detection
2014-04-02 2:24 GMT+02:00 Joseph Prostko : > Below is a patch via `fossil diff` to detect getloadavg() which allows > Fossil to build cleanly on Haiku (and potentially other systems that > would happen not to have getloadavg() available. Thanks! Jan Nijtmans ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] getloadavg() detection
On Tue, Apr 1, 2014 at 8:24 PM, Joseph Prostko wrote: > Below is a patch via `fossil diff` to detect getloadavg() which allows > Fossil to build cleanly on Haiku (and potentially other systems that > would happen not to have getloadavg() available. My mail client wrapped text, unfortunately, but seeing as it is a simple patch, it can probably essentially be copied/pasted into auto.def. ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
[fossil-users] getloadavg() detection
Hello, I was trying to build a recent version of Fossil on Haiku, and noticed that the build failed due to there not being getloadavg() on the platform. Below is a patch via `fossil diff` to detect getloadavg() which allows Fossil to build cleanly on Haiku (and potentially other systems that would happen not to have getloadavg() available. Index: auto.def == --- auto.def +++ auto.def @@ -248,10 +248,15 @@ if {[string match *mingw* [get-define host]]} { define-append LIBS -lwsock32 } } cc-check-function-in-lib iconv iconv + +# Check for getloadavg(), and if it doesn't exist, define FOSSIL_OMIT_LOAD_AVERAGE +if {![cc-check-functions getloadavg]} { + define FOSSIL_OMIT_LOAD_AVERAGE 1 +} # Check for getpassphrase() for Solaris 10 where getpass() truncates to 10 chars if {![cc-check-functions getpassphrase]} { # Haiku needs this cc-check-function-in-lib getpass bsd ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users