summaryrefslogtreecommitdiff
path: root/src/getloadavg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/getloadavg.c')
-rw-r--r--src/getloadavg.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/getloadavg.c b/src/getloadavg.c
index 32d0f41a4a9..c5d78907d82 100644
--- a/src/getloadavg.c
+++ b/src/getloadavg.c
@@ -420,7 +420,7 @@ extern int errno;
# define host_self mach_host_self
# endif
-# ifdef NeXT
+# if defined(NeXT) || defined(RHAPSODY) || defined(DARWIN) || defined(MAC_OSX)
# ifdef HAVE_MACH_MACH_H
# include <mach/mach.h>
# else
@@ -467,7 +467,7 @@ extern int errno;
/* Avoid static vars inside a function since in HPUX they dump as pure. */
-# ifdef NeXT
+# if defined(NeXT) || defined(RHAPSODY) || defined(DARWIN) || defined(MAC_OSX)
static processor_set_t default_set;
static int getloadavg_initialized;
# endif /* NeXT */
@@ -647,7 +647,8 @@ getloadavg (loadavg, nelem)
# endif /* __NetBSD__ */
-# if !defined (LDAV_DONE) && defined (NeXT)
+# if !defined (LDAV_DONE) && ( defined (NeXT) || defined(RHAPSODY) \
+ || defined(DARWIN) || defined(MAC_OSX) )
# define LDAV_DONE
/* The NeXT code was adapted from iscreen 3.2. */