changeset 17064:0f4ca446767c

[__GNU__] (NeXT, host_self): New macros, to make hurd systems use the NeXT code for getting load averages.
author Miles Bader <miles@gnu.org>
date Sun, 23 Feb 1997 03:38:49 +0000
parents 647b28ba4d1b
children 01cba1834368
files src/getloadavg.c
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/getloadavg.c	Sat Feb 22 19:31:56 1997 +0000
+++ b/src/getloadavg.c	Sun Feb 23 03:38:49 1997 +0000
@@ -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 @@
 
 # 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>