mirror of
https://github.com/novatiq/packages.git
synced 2026-06-30 17:20:22 +01:00
d9bb2dc5f6
getloadavg is missing not just under cygwin. Signed-off-by: Rosen Penev <rosenp@gmail.com>
12 lines
299 B
Diff
12 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];
|