summaryrefslogtreecommitdiffstats
path: root/gl/getloadavg.c
diff options
context:
space:
mode:
Diffstat (limited to 'gl/getloadavg.c')
-rw-r--r--gl/getloadavg.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gl/getloadavg.c b/gl/getloadavg.c
index 5faa8fa..5c32f9f 100644
--- a/gl/getloadavg.c
+++ b/gl/getloadavg.c
@@ -1,7 +1,7 @@
1/* Get the system load averages. 1/* Get the system load averages.
2 2
3 Copyright (C) 1985, 1986, 1987, 1988, 1989, 1991, 1992, 1993, 1994, 3 Copyright (C) 1985, 1986, 1987, 1988, 1989, 1991, 1992, 1993, 1994,
4 1995, 1997, 1999, 2000, 2003, 2004, 2005, 2006, 2007 Free Software 4 1995, 1997, 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2008 Free Software
5 Foundation, Inc. 5 Foundation, Inc.
6 6
7 NOTE: The canonical source of this file is maintained with gnulib. 7 NOTE: The canonical source of this file is maintained with gnulib.
@@ -89,9 +89,11 @@
89# include <stdbool.h> 89# include <stdbool.h>
90#endif 90#endif
91 91
92/* Specification. */
93#include <stdlib.h>
94
92#include <errno.h> 95#include <errno.h>
93#include <stdio.h> 96#include <stdio.h>
94#include <stdlib.h>
95 97
96/* Exclude all the code except the test program at the end 98/* Exclude all the code except the test program at the end
97 if the system has its own `getloadavg' function. */ 99 if the system has its own `getloadavg' function. */
@@ -407,6 +409,7 @@
407# endif /* LOAD_AVE_TYPE */ 409# endif /* LOAD_AVE_TYPE */
408 410
409# if defined HAVE_LIBPERFSTAT 411# if defined HAVE_LIBPERFSTAT
412# include <sys/protosw.h>
410# include <libperfstat.h> 413# include <libperfstat.h>
411# include <sys/proc.h> 414# include <sys/proc.h>
412# ifndef SBITS 415# ifndef SBITS