mirror of
https://github.com/mirror/make.git
synced 2025-03-14 11:50:35 +08:00
* src/job.c: [SV 63185] Include sys/loadavg.h if needed.
This commit is contained in:
parent
e5e538fb7a
commit
72ee43c473
13
src/job.c
13
src/job.c
@ -204,6 +204,15 @@ int getgid ();
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if HAVE_SYS_LOADAVG_H
|
||||
# include <sys/time.h>
|
||||
# include <sys/loadavg.h>
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_DECL_GETLOADAVG
|
||||
int getloadavg (double loadavg[], int nelem);
|
||||
#endif
|
||||
|
||||
/* Different systems have different requirements for pid_t.
|
||||
Plus we have to support gettext string translation... Argh. */
|
||||
static const char *
|
||||
@ -220,10 +229,6 @@ pid2str (pid_t pid)
|
||||
return pidstring;
|
||||
}
|
||||
|
||||
#ifndef HAVE_DECL_GETLOADAVG
|
||||
int getloadavg (double loadavg[], int nelem);
|
||||
#endif
|
||||
|
||||
static void free_child (struct child *);
|
||||
static void start_job_command (struct child *child);
|
||||
static int load_too_high (void);
|
||||
|
Loading…
Reference in New Issue
Block a user