]> git.ipfire.org Git - thirdparty/make.git/commit
Convert HAVE_GETLOADAVG to HAVE_DECL_GETLOADAVG
authorPaul Smith <psmith@gnu.org>
Fri, 8 Jul 2022 21:20:31 +0000 (17:20 -0400)
committerPaul Smith <psmith@gnu.org>
Sat, 9 Jul 2022 15:09:17 +0000 (11:09 -0400)
commitdd24a4c1cfa7b6928ddb2bcd00a023f23aaaf440
tree0d4c389198e918292dbf56cc247b9f1c61292667
parentf36c6c734707b3ad4b3d4383ec557e9aadfbe5a4
Convert HAVE_GETLOADAVG to HAVE_DECL_GETLOADAVG

We want to know if getloadavg() is declared, not if we have it.

* configure.ac: Add it as a define (why is this not the default?)
* src/job.c: Conditionalize declaration on HAVE_DECL_GETLOADAVG.
* config.ami.template: Rename HAVE_GETLOADAVG to HAVE_DECL_GETLOADAVG.
* config.h-vms.template: Ditto.
* config.h.W32.template: Ditto.
Clean up and add new elements from latest config.h.
configure.ac
src/config.ami.template
src/config.h-vms.template
src/config.h.W32.template
src/job.c