diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/getloadavg.c | 8 |
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 @@ | |||
| 1 | /* Get the system load averages. | 1 | /* Get the system load averages. |
| 2 | Copyright (C) 1985, 86, 87, 88, 89, 91, 92, 93, 1994, 1995 | 2 | Copyright (C) 1985, 86, 87, 88, 89, 91, 92, 93, 1994, 1995, 1997 |
| 3 | Free Software Foundation, Inc. | 3 | Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This program is free software; you can redistribute it and/or modify | 5 | This program is free software; you can redistribute it and/or modify |
| @@ -436,6 +436,12 @@ extern int errno; | |||
| 436 | 436 | ||
| 437 | # endif /* LOAD_AVE_TYPE */ | 437 | # endif /* LOAD_AVE_TYPE */ |
| 438 | 438 | ||
| 439 | # ifdef __GNU__ | ||
| 440 | /* GNU hurd systems act sort of like NeXT ones, for load average purposes. */ | ||
| 441 | # define NeXT | ||
| 442 | # define host_self mach_host_self | ||
| 443 | # endif | ||
| 444 | |||
| 439 | # ifdef NeXT | 445 | # ifdef NeXT |
| 440 | # ifdef HAVE_MACH_MACH_H | 446 | # ifdef HAVE_MACH_MACH_H |
| 441 | # include <mach/mach.h> | 447 | # include <mach/mach.h> |