diff options
author | Jim Blandy <jimb@red-bean.com> | 1993-06-09 09:23:12 +0000 |
---|---|---|
committer | Jim Blandy <jimb@red-bean.com> | 1993-06-09 09:23:12 +0000 |
commit | 7089c07d4e0ccc61f1cebeb88b781d6e29b530d1 (patch) | |
tree | 8d361bffce5c89b32529894c630bbe1cb4cd517f | |
parent | f363e41c2712b45403b6501d6039f7d37353a281 (diff) | |
download | gunmake-7089c07d4e0ccc61f1cebeb88b781d6e29b530d1.tar.gz |
*** empty log message ***
-rw-r--r-- | getloadavg.c | 96 |
1 files changed, 92 insertions, 4 deletions
diff --git a/getloadavg.c b/getloadavg.c index 7003539..c74f63d 100644 --- a/getloadavg.c +++ b/getloadavg.c @@ -141,8 +141,48 @@ #endif -/* VAX C can't handle multi-line #ifs. */ -#if (defined(MORE_BSD) || defined(sun) || defined(decstation) || defined(_SEQUENT_) || defined(sgi) || defined(SVR4) || defined(sony_news) || defined(sequent) || defined (OSF_ALPHA) || (defined (ardent) && defined (titan)) || defined (tek4300)) +/* VAX C can't handle multi-line #ifs, or lines longer than 256 chars. */ +#ifdef MORE_BSD +#define LOAD_AVE_TYPE long +#endif + +#ifdef sun +#define LOAD_AVE_TYPE long +#endif + +#ifdef decstation +#define LOAD_AVE_TYPE long +#endif + +#ifdef _SEQUENT_ +#define LOAD_AVE_TYPE long +#endif + +#ifdef sgi +#define LOAD_AVE_TYPE long +#endif + +#ifdef SVR4 +#define LOAD_AVE_TYPE long +#endif + +#ifdef sony_news +#define LOAD_AVE_TYPE long +#endif + +#ifdef sequent +#define LOAD_AVE_TYPE long +#endif + +#ifdef OSF_ALPHA +#define LOAD_AVE_TYPE long +#endif + +#ifdef ardent && titan +#define LOAD_AVE_TYPE long +#endif + +#ifdef tex4300 #define LOAD_AVE_TYPE long #endif @@ -177,11 +217,59 @@ #define LDAV_CVT(n) (((double) (n)) / FSCALE) #endif -/* VAX C can't handle multi-line #ifs. */ -#if !defined(NLIST_STRUCT) && (defined(MORE_BSD) || defined(sun) || defined(decstation) || defined(hpux) || defined(_SEQUENT_) || defined(sequent) || defined(sgi) || defined(SVR4) || defined(sony_news) || defined (OSF_ALPHA) || (defined (ardent) && defined (titan)) || defined (tek4300) || defined (butterfly)) +/* VAX C can't handle multi-line #ifs, or lines longer that 256 characters. */ +#ifndef NLIST_STRUCT + +#ifdef MORE_BSD #define NLIST_STRUCT #endif +#ifdef sun +#define NLIST_STRUCT +#endif + +#ifdef decstation +#define NLIST_STRUCT +#endif + +#ifdef hpux +#define NLIST_STRUCT +#endif + +#if defined (_SEQUENT_) || defined (sequent) +#define NLIST_STRUCT +#endif + +#ifdef sgi +#define NLIST_STRUCT +#endif + +#ifdef SVR4 +#define NLIST_STRUCT +#endif + +#ifdef sony_news +#define NLIST_STRUCT +#endif + +#ifdef OSF_ALPHA +#define NLIST_STRUCT +#endif + +#if defined (ardent) && defined (titan) +#define NLIST_STRUCT +#endif + +#ifdef tex4300 +#define NLIST_STRUCT +#endif + +#ifdef butterfly +#define NLIST_STRUCT +#endif + +#endif /* defined (NLIST_STRUCT) */ + #if defined(sgi) || (defined(mips) && !defined(BSD)) #define FIXUP_KERNEL_SYMBOL_ADDR(nl) ((nl)[0].n_value &= ~(1 << 31)) |