From 4dd6fcb510e239326f819e3fffdd45f9cdd2a6c5 Mon Sep 17 00:00:00 2001 From: Kevin Darbyshire-Bryant Date: Sun, 5 Sep 2021 23:28:16 +0100 Subject: [PATCH] tools/findutils: fix build on macos Use same fix as homebrew: https://github.com/Homebrew/homebrew-core/pull/69761 Signed-off-by: Kevin Darbyshire-Bryant --- tools/findutils/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/findutils/Makefile b/tools/findutils/Makefile index c40fa6efc1..37cd897355 100644 --- a/tools/findutils/Makefile +++ b/tools/findutils/Makefile @@ -18,6 +18,10 @@ HOST_BUILD_PARALLEL:=1 include $(INCLUDE_DIR)/host-build.mk +ifeq ($(HOST_OS),Darwin) + HOST_CFLAGS +=-D__nonnull\\(params\\)= +endif + HOST_CONFIGURE_ARGS += \ --enable-threads=pth \ --disable-rpath \