changeset 10995:4d35f63c0e40

getloadavg: avoid compile failure on AIX 6.1 * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>. Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
author Jeremy Olexa <darkside@gentoo.org>
date Tue, 06 Jan 2009 21:25:54 +0100
parents 849e7305914c
children 724ce887ae63
files ChangeLog lib/getloadavg.c
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
+
+	avoid compile failure on AIX 6.1
+	* lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
+	Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
+
 2009-01-04  Jim Meyering  <meyering@redhat.com>
 
 	remove duplicate inclusion of <stdio.h>
--- a/lib/getloadavg.c
+++ b/lib/getloadavg.c
@@ -409,6 +409,7 @@
 # endif /* LOAD_AVE_TYPE */
 
 # if defined HAVE_LIBPERFSTAT
+#  include <sys/protosw.h>
 #  include <libperfstat.h>
 #  include <sys/proc.h>
 #  ifndef SBITS