X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fgetloadavg.c;h=cfa62735bb1244402d8c71ced1589f5ce6ee780d;hb=d90792110b23736fb629c7f3ee150d917e8e9e3a;hp=98e2297dcad09f738dfa68d0999375631153008e;hpb=d76a6493392c315ba9da4a262efaa430b1a72476;p=gnulib.git diff --git a/lib/getloadavg.c b/lib/getloadavg.c index 98e2297dc..cfa62735b 100644 --- a/lib/getloadavg.c +++ b/lib/getloadavg.c @@ -1,7 +1,8 @@ /* Get the system load averages. Copyright (C) 1985, 1986, 1987, 1988, 1989, 1991, 1992, 1993, 1994, - 1995, 1997, 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc. + 1995, 1997, 1999, 2000, 2003, 2004, 2005, 2006 Free Software + Foundation, Inc. NOTE: The canonical source of this file is maintained with gnulib. Bugs can be reported to bug-gnulib@gnu.org. @@ -80,13 +81,15 @@ We also #define LDAV_PRIVILEGED if a program will require special installation to be able to call getloadavg. */ -/* This should always be first. */ -#ifdef HAVE_CONFIG_H +/* "configure" defines CONFIGURING_GETLOADAVG to sidestep problems + with partially-configured source directories. */ + +#ifndef CONFIGURING_GETLOADAVG # include +# include #endif #include -#include #include #include @@ -279,7 +282,7 @@ # endif -# ifndef FSCALE +# ifndef FSCALE /* SunOS and some others define FSCALE in sys/param.h. */