summaryrefslogtreecommitdiff
path: root/getloadavg.c
diff options
context:
space:
mode:
Diffstat (limited to 'getloadavg.c')
-rw-r--r--getloadavg.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/getloadavg.c b/getloadavg.c
index 635e5ac..8461487 100644
--- a/getloadavg.c
+++ b/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>