diff options
author | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2009-01-15 04:22:57 -0500 |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2009-01-15 05:19:08 -0500 |
commit | 71cdb52799220f8d9052643baf1d3e9836a9c755 (patch) | |
tree | 27aee97a35d9ab51f0d8f64a46690bd41a5f8c1b /gl/getloadavg.c | |
parent | f7afa46586645e50498d8b2d0c67884f014dc3a4 (diff) | |
download | monitoring-plugins-71cdb52799220f8d9052643baf1d3e9836a9c755.tar.gz |
Sync with gnulib
Diffstat (limited to 'gl/getloadavg.c')
-rw-r--r-- | gl/getloadavg.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gl/getloadavg.c b/gl/getloadavg.c index 5faa8faa..5c32f9f9 100644 --- a/gl/getloadavg.c +++ b/gl/getloadavg.c @@ -1,7 +1,7 @@ /* Get the system load averages. Copyright (C) 1985, 1986, 1987, 1988, 1989, 1991, 1992, 1993, 1994, - 1995, 1997, 1999, 2000, 2003, 2004, 2005, 2006, 2007 Free Software + 1995, 1997, 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. NOTE: The canonical source of this file is maintained with gnulib. @@ -89,9 +89,11 @@ # include <stdbool.h> #endif +/* Specification. */ +#include <stdlib.h> + #include <errno.h> #include <stdio.h> -#include <stdlib.h> /* Exclude all the code except the test program at the end if the system has its own `getloadavg' function. */ @@ -407,6 +409,7 @@ # endif /* LOAD_AVE_TYPE */ # if defined HAVE_LIBPERFSTAT +# include <sys/protosw.h> # include <libperfstat.h> # include <sys/proc.h> # ifndef SBITS |