diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2019-12-04 13:38:14 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2019-12-04 13:38:14 +0300 |
commit | 9c26757d3dd8f8c4b21c98b326708a71c54b1773 (patch) | |
tree | 6bc68f0c292a1e4dc1b0624ee44b6d5bab02bbb8 | |
parent | fed4e1f677e179c67c0abbe5526cc81d4f85f3c9 (diff) | |
download | illumos-packaging-9c26757d3dd8f8c4b21c98b326708a71c54b1773.tar.gz |
Put getloadavg to stdlib.h
-rw-r--r-- | libc/debian/patches/libc-stdlib-getloadavg.patch | 16 | ||||
-rw-r--r-- | libc/debian/patches/series | 1 |
2 files changed, 17 insertions, 0 deletions
diff --git a/libc/debian/patches/libc-stdlib-getloadavg.patch b/libc/debian/patches/libc-stdlib-getloadavg.patch new file mode 100644 index 0000000..b139747 --- /dev/null +++ b/libc/debian/patches/libc-stdlib-getloadavg.patch @@ -0,0 +1,16 @@ +Description: getloadavg() is found in stdlib.h on Linux and BSD +Index: libc/usr/src/head/stdlib.h +=================================================================== +--- libc.orig/usr/src/head/stdlib.h ++++ libc/usr/src/head/stdlib.h +@@ -57,6 +57,10 @@ void qsort_r(void *, size_t, size_t, int + + #endif /* _GNU_SOURCE */ + ++#if defined(__EXTENSIONS__) ++extern int getloadavg(double [], int); ++#endif /* __EXTENSIONS__ */ ++ + + /* + * Allow global visibility for symbols defined in diff --git a/libc/debian/patches/series b/libc/debian/patches/series index 35b3901..aabf652 100644 --- a/libc/debian/patches/series +++ b/libc/debian/patches/series @@ -147,3 +147,4 @@ nameser.h-types.patch libm-macro.patch illumos-6501-pthread_attr_get_np.patch math.h-exclude-floatingpoint.h.patch +libc-stdlib-getloadavg.patch |