summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-04-14 02:12:46 +0000
committerJim Meyering <jim@meyering.net>1996-04-14 02:12:46 +0000
commit505b859fe96a82e595dc650d951f065647345456 (patch)
tree695f3e9ce31b28409bb2f33cbc1c23e091b6f545
parente6cfa9848628a6abc4bb17ed532e08aa4de1975c (diff)
downloadcoreutils-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.c6
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