iostat: fix build with musl
PATCH 1/1 iostat: fix build with musl
musl does not provide access to the kernel defined HZ macro. Under Linux HZ is always 100, so use that value.
Fixes:
http://autobuild.buildroot.net/results/dc9/dc98a572c7055cb66cf14648af750b7e0c8e136e/
http://autobuild.buildroot.net/results/fe3/fe3907858f90f766f1949be631427dbb079e08ed/
http://autobuild.buildroot.net/results/59e/59e7c8a3d94d06ba52ea5034fcabd9737a5314db/
and more.
--- package/iostat/iostat.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
package/iostat/iostat.mk +2 -1
@@ -10,7 +10,8 @@ IOSTAT_LICENSE = GPL IOSTAT_LICENSE_FILES = LICENSE define IOSTAT_BUILD_CMDS - $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) + $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS) -DHZ=100" endef define IOSTAT_INSTALL_TARGET_CMDS
Signature · 1 line
2.5.3
PATCH 1/1 iostat: fix build with musl
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Baruch" == Baruch Siach <[email protected]> writes:
musl does not provide access to the kernel defined HZ macro. Under Linux HZ is always 100, so use that value.
Quoted 8 lines
Fixes:
http://autobuild.buildroot.net/results/dc9/dc98a572c7055cb66cf14648af750b7e0c8e136e/
http://autobuild.buildroot.net/results/fe3/fe3907858f90f766f1949be631427dbb079e08ed/
http://autobuild.buildroot.net/results/59e/59e7c8a3d94d06ba52ea5034fcabd9737a5314db/and more.
Signed-off-by Baruch Siach <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard