]> git.ipfire.org Git - thirdparty/make.git/commitdiff
* src/job.c: [SV 63185] Don't use ifdef with HAVE_DECL_* macros
authorPaul Smith <psmith@gnu.org>
Thu, 27 Oct 2022 19:20:40 +0000 (15:20 -0400)
committerPaul Smith <psmith@gnu.org>
Thu, 27 Oct 2022 19:20:40 +0000 (15:20 -0400)
src/job.c

index 21492441761f610e48b531eb54e621d968369149..bebe16e8306b88dcc957b48331706aa9aa4d07d5 100644 (file)
--- 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