# 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 *
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);