diff options
author | Jim Meyering <jim@meyering.net> | 1996-04-14 02:12:46 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-04-14 02:12:46 +0000 |
commit | 505b859fe96a82e595dc650d951f065647345456 (patch) | |
tree | 695f3e9ce31b28409bb2f33cbc1c23e091b6f545 | |
parent | e6cfa9848628a6abc4bb17ed532e08aa4de1975c (diff) | |
download | coreutils-505b859fe96a82e595dc650d951f065647345456.tar.xz |
Test cpp-defined __sun as well as sun, because
in strict ANSI mode, only __sun is defined. From Kaveh Ghazi.
-rw-r--r-- | lib/getloadavg.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/getloadavg.c b/lib/getloadavg.c index 598c505d1..bd024cf20 100644 --- a/lib/getloadavg.c +++ b/lib/getloadavg.c @@ -139,7 +139,7 @@ extern int errno; #define decstation #endif -#if defined(sun) && defined(SVR4) +#if (defined(sun) || defined(__sun)) && defined(SVR4) #define SUNOS_5 #endif @@ -168,7 +168,7 @@ extern int errno; #define LOAD_AVE_TYPE long #endif -#ifdef sun +#if defined(sun) || defined(__sun) #define LOAD_AVE_TYPE long #endif @@ -284,7 +284,7 @@ extern int errno; #define NLIST_STRUCT #endif -#ifdef sun +#if defined(sun) || defined(__sun) #define NLIST_STRUCT #endif |