mirror of
https://github.com/mirror/make.git
synced 2024-12-29 14:30:42 +08:00
[__hpux]: Define hpux. From Eric Backus.
[__sun]: Define sun. Reported by Kaveh Ghazi.
This commit is contained in:
parent
82e6316607
commit
c71e4ac269
10
getloadavg.c
10
getloadavg.c
@ -133,6 +133,14 @@ extern int errno;
|
||||
#define hpux
|
||||
#endif
|
||||
|
||||
#if defined (__hpux) && !defined (hpux)
|
||||
#define hpux
|
||||
#endif
|
||||
|
||||
#if defined (__sun) && !defined (sun)
|
||||
#define sun
|
||||
#endif
|
||||
|
||||
#if defined(hp300) && !defined(hpux)
|
||||
#define MORE_BSD
|
||||
#endif
|
||||
@ -529,7 +537,7 @@ getloadavg (loadavg, nelem)
|
||||
ksp = kstat_lookup (kc, "unix", 0, "system_misc");
|
||||
if (ksp == 0 ) return -1;
|
||||
if (kstat_read (kc, ksp, 0) == -1) return -1;
|
||||
|
||||
|
||||
|
||||
kn = kstat_data_lookup (ksp, "avenrun_1min");
|
||||
if (kn == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user