aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/depends/target/libmicrohttpd/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/depends/target/libmicrohttpd/Makefile b/tools/depends/target/libmicrohttpd/Makefile
index 6bae6ce677..26d6c64b46 100644
--- a/tools/depends/target/libmicrohttpd/Makefile
+++ b/tools/depends/target/libmicrohttpd/Makefile
@@ -15,6 +15,13 @@ ifeq ($(DEBUG_BUILD), yes)
CONFIGURE+= --enable-asserts
endif
+ifeq ($(findstring apple-darwin, $(HOST)), apple-darwin)
+ # blanket disable timespec_get use for apple platforms. timespec_get was introduced in
+ # __API_AVAILABLE(macosx(10.15), ios(13.0), tvos(13.0), watchos(6.0)) but older platforms
+ # are failing to run.
+ CONFIGURE+= mhd_cv_func_timespec_get=no
+endif
+
LIBDYLIB=$(PLATFORM)/src/microhttpd/.libs/$(LIBNAME).a
all: .installed-$(PLATFORM)