Mercurial > hg > octave-nkf > gnulib-hg
changeset 754:93f2c050ed3b
[__linux__]: Don't bother with a.out/nlist/kernel
defines or includes -- Linux systems simply read /proc/loadavg.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Tue, 22 Oct 1996 05:01:13 +0000 |
parents | 7b0b8e3eb12c |
children | f1fa143cd419 |
files | lib/getloadavg.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/getloadavg.c +++ b/lib/getloadavg.c @@ -390,6 +390,7 @@ #ifdef LOAD_AVE_TYPE #ifndef VMS +#ifndef __linux__ #ifndef NLIST_STRUCT #include <a.out.h> #else /* NLIST_STRUCT */ @@ -409,6 +410,7 @@ #ifndef LDAV_SYMBOL #define LDAV_SYMBOL "_avenrun" #endif /* LDAV_SYMBOL */ +#endif /* __linux__ */ #else /* VMS */ @@ -495,7 +497,7 @@ /* 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 */