mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
moreutils: fix compilation with uClibc-ng
getloadavg is missing not just under cygwin. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
--- 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];
|
||||
Reference in New Issue
Block a user