diff options
author | lancethepants <lancethepants@gmail.com> | 2022-05-20 20:37:10 -0600 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2022-05-23 09:15:51 +0200 |
commit | ad3a130dad88ad7a59dcd965b0cf9bd0d713595e (patch) | |
tree | 08937d5ccbbc165a61f533f6841b30bfc2e86f3a /include | |
parent | 287e9d271eb282210bb6f413f18dfbc89512eba3 (diff) |
libc/misc/getloadavg: Add getloadavg support to uClibc-ng
This borrows getloadavg.c from musl.
getloadavg pops up often. Recently llvm and rust are dependent on it.
glibc and musl have it and no-one actually checks if it's available in your libc.
It's just become way easier to add it in uclibc-ng rather than patch everything else.
Signed-off-by: Lance Fredrickson <lancethepants@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/stdlib.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stdlib.h b/include/stdlib.h index 6a253cc3f..987fe2223 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -979,7 +979,7 @@ extern int getpt (void); # endif #endif -#if 0 /* def __USE_BSD */ +#ifdef __USE_BSD /* Put the 1 minute, 5 minute and 15 minute load averages into the first NELEM elements of LOADAVG. Return the number written (never more than three, but may be less than NELEM), or -1 if an error occurred. */ |