diff options
author | Jim Meyering <jim@meyering.net> | 1996-10-22 05:01:13 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-10-22 05:01:13 +0000 |
commit | ee791d8ca130af1fea2c9c107ab0eadc1d0512a0 (patch) | |
tree | 76aaef6abce890890ffc5c033703789229afcad2 | |
parent | 0c410767ab88909c41229441bb95b6d159368fb9 (diff) | |
download | coreutils-ee791d8ca130af1fea2c9c107ab0eadc1d0512a0.tar.xz |
[__linux__]: Don't bother with a.out/nlist/kernel
defines or includes -- Linux systems simply read /proc/loadavg.
-rw-r--r-- | lib/getloadavg.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/getloadavg.c b/lib/getloadavg.c index 6209fef76..dae189ffe 100644 --- a/lib/getloadavg.c +++ b/lib/getloadavg.c @@ -390,6 +390,7 @@ extern int errno; #ifdef LOAD_AVE_TYPE #ifndef VMS +#ifndef __linux__ #ifndef NLIST_STRUCT #include <a.out.h> #else /* NLIST_STRUCT */ @@ -409,6 +410,7 @@ extern int errno; #ifndef LDAV_SYMBOL #define LDAV_SYMBOL "_avenrun" #endif /* LDAV_SYMBOL */ +#endif /* __linux__ */ #else /* VMS */ @@ -495,7 +497,7 @@ static int getloadavg_initialized; /* Offset in kmem to seek to read load average, or 0 means invalid. */ static long offset; -#if !defined(VMS) && !defined(sgi) +#if !defined(VMS) && !defined(sgi) && !defined(__linux__) static struct nlist nl[2]; #endif /* Not VMS or sgi */ |