Bläddra i källkod

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 <[email protected]>
Kevin Darbyshire-Bryant 4 år sedan
förälder
incheckning
96a7a4738c
1 ändrade filer med 4 tillägg och 0 borttagningar
  1. 4 0
      tools/findutils/Makefile

+ 4 - 0
tools/findutils/Makefile

@@ -18,6 +18,10 @@ HOST_BUILD_PARALLEL:=1
 
 
 include $(INCLUDE_DIR)/host-build.mk
 include $(INCLUDE_DIR)/host-build.mk
 
 
+ifeq ($(HOST_OS),Darwin)
+	HOST_CFLAGS +=-D__nonnull\\(params\\)=
+endif
+
 HOST_CONFIGURE_ARGS += \
 HOST_CONFIGURE_ARGS += \
 	--enable-threads=pth \
 	--enable-threads=pth \
 	--disable-rpath \
 	--disable-rpath \