diff options
| author | Rosen Penev <rosenp@gmail.com> | 2020-08-13 19:33:06 -0700 |
|---|---|---|
| committer | Rosen Penev <rosenp@gmail.com> | 2020-08-13 21:38:40 -0700 |
| commit | d9bb2dc5f6fe4f7592d8fa7c07b77d14c31714da (patch) | |
| tree | 0119683915ec41211f8d0284f894d71f285325a4 /utils/moreutils | |
| parent | d8d06cfca262d97c7d3a3481c6a0f2cd3803c250 (diff) | |
moreutils: fix compilation with uClibc-ng
getloadavg is missing not just under cygwin.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'utils/moreutils')
| -rw-r--r-- | utils/moreutils/Makefile | 2 | ||||
| -rw-r--r-- | utils/moreutils/patches/010-uclibc.patch | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/utils/moreutils/Makefile b/utils/moreutils/Makefile index 51e28235b..2f2326e75 100644 --- a/utils/moreutils/Makefile +++ b/utils/moreutils/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=moreutils PKG_VERSION:=0.63 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://git.kitenet.net/index.cgi/moreutils.git/snapshot diff --git a/utils/moreutils/patches/010-uclibc.patch b/utils/moreutils/patches/010-uclibc.patch new file mode 100644 index 000000000..8fff106d0 --- /dev/null +++ b/utils/moreutils/patches/010-uclibc.patch @@ -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]; |
