diff options
author | Paul Smith <psmith@gnu.org> | 2022-07-08 17:20:31 -0400 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2022-07-09 11:09:17 -0400 |
commit | dd24a4c1cfa7b6928ddb2bcd00a023f23aaaf440 (patch) | |
tree | 0d4c389198e918292dbf56cc247b9f1c61292667 /configure.ac | |
parent | f36c6c734707b3ad4b3d4383ec557e9aadfbe5a4 (diff) | |
download | make-git-dd24a4c1cfa7b6928ddb2bcd00a023f23aaaf440.tar.gz |
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.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 51817b2c..4a0d5301 100644 --- a/configure.ac +++ b/configure.ac @@ -437,6 +437,9 @@ AS_CASE([$host], AC_DEFINE_UNQUOTED([PATH_SEPARATOR_CHAR],['$PATH_SEPARATOR'], [Define to the character that separates directories in PATH.]) +AC_DEFINE_UNQUOTED([HAVE_DECL_GETLOADAVG],[$HAVE_DECL_GETLOADAVG], + [Define to 1 if you have the declaration of 'getloadavg'.]) + # Include the Maintainer's Makefile section, if it's here. MAINT_MAKEFILE=/dev/null |