summaryrefslogtreecommitdiff
path: root/src/getloadavg.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-02-23 03:38:49 +0000
committerMiles Bader <miles@gnu.org>1997-02-23 03:38:49 +0000
commit2c30b2fc06bbd85c2e1e4b0e61d015769a517391 (patch)
tree639491a4662eebf30b3a640c8f06a5f9e76ae0aa /src/getloadavg.c
parente22e428338c071aca0bc154b7fc0bc47e2999421 (diff)
downloademacs-2c30b2fc06bbd85c2e1e4b0e61d015769a517391.tar.gz
[__GNU__] (NeXT, host_self):
New macros, to make hurd systems use the NeXT code for getting load averages.
Diffstat (limited to 'src/getloadavg.c')
-rw-r--r--src/getloadavg.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/getloadavg.c b/src/getloadavg.c
index 635e5ac534a..84614870786 100644
--- a/src/getloadavg.c
+++ b/src/getloadavg.c
@@ -1,5 +1,5 @@
/* Get the system load averages.
- Copyright (C) 1985, 86, 87, 88, 89, 91, 92, 93, 1994, 1995
+ Copyright (C) 1985, 86, 87, 88, 89, 91, 92, 93, 1994, 1995, 1997
Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
@@ -436,6 +436,12 @@ extern int errno;
# endif /* LOAD_AVE_TYPE */
+# ifdef __GNU__
+/* GNU hurd systems act sort of like NeXT ones, for load average purposes. */
+# define NeXT
+# define host_self mach_host_self
+# endif
+
# ifdef NeXT
# ifdef HAVE_MACH_MACH_H
# include <mach/mach.h>