packages/utils/moreutils/patches/010-uclibc.patch
Rosen Penev d9bb2dc5f6
moreutils: fix compilation with uClibc-ng
getloadavg is missing not just under cygwin.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-08-13 21:38:40 -07:00

11 lines
299 B
Diff

--- a/parallel.c
+++ b/parallel.c
@@ -241,7 +241,7 @@ pid_t create_pipe_child(int *fd, int orig_fd)
return pipe_child(fds[0], orig_fd);
}
-#if defined(__CYGWIN__)
+#if defined(__CYGWIN__) || defined(__UCLIBC__)
int getloadavg(double loadavg[], int nelem) {
int fd, n, elem;
char buf[128];