summaryrefslogtreecommitdiff
path: root/lib/getloadavg.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2008-10-19 12:57:06 +0200
committerBruno Haible <bruno@clisp.org>2008-10-19 12:57:06 +0200
commitfe18f20f2ac58f3fda945a633eccb85acc83e3e1 (patch)
tree830a6af100f5759cb6163be16cbda74144162fa2 /lib/getloadavg.c
parent3247f1f8ad0dc42bbf863d481e4111b4735e4bb5 (diff)
downloadgnulib-fe18f20f2ac58f3fda945a633eccb85acc83e3e1.tar.gz
Add a getloadavg() declaration to <stdlib.h>.
Diffstat (limited to 'lib/getloadavg.c')
-rw-r--r--lib/getloadavg.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/getloadavg.c b/lib/getloadavg.c
index 5faa8faa32..ccfb6f0d72 100644
--- a/lib/getloadavg.c
+++ b/lib/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. */