summaryrefslogtreecommitdiff
path: root/src/job.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2022-10-27 15:20:40 -0400
committerPaul Smith <psmith@gnu.org>2022-10-27 15:20:40 -0400
commit8064aee4f978ff609e76dd43b3cfaa568174b994 (patch)
treed4b2205925b502debd736279f943d6965afca644 /src/job.c
parentcf78e65fdaff051640ae9a83130d139aeb690e28 (diff)
downloadmake-git-8064aee4f978ff609e76dd43b3cfaa568174b994.tar.gz
* src/job.c: [SV 63185] Don't use ifdef with HAVE_DECL_* macros
Diffstat (limited to 'src/job.c')
-rw-r--r--src/job.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/job.c b/src/job.c
index 21492441..bebe16e8 100644
--- a/src/job.c
+++ b/src/job.c
@@ -205,11 +205,10 @@ int getgid ();
#endif
#if HAVE_SYS_LOADAVG_H
-# include <sys/time.h>
# include <sys/loadavg.h>
#endif
-#ifndef HAVE_DECL_GETLOADAVG
+#if HAVE_DECL_GETLOADAVG == 0
int getloadavg (double loadavg[], int nelem);
#endif