From b938fbab1982780e7a50d4937080f617abaa5cca Mon Sep 17 00:00:00 2001 From: Jaroslaw Bojar Date: Wed, 19 May 2021 18:30:12 +0200 Subject: [PATCH] Fixed compilation error on MacOS BigSur: - added `#include ` to src/script.c - added `-f` option to `ln -s luajit-2.1.0-beta3 luajit`, because without make failed on repeated build without clean --- Makefile | 2 +- src/script.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6d1d119..01039e4 100644 --- a/Makefile +++ b/Makefile @@ -87,7 +87,7 @@ $(ODIR)/$(OPENSSL): deps/$(OPENSSL).tar.gz | $(ODIR) $(ODIR)/lib/libluajit-5.1.a: $(ODIR)/$(LUAJIT) @echo Building LuaJIT... @$(MAKE) -C $< PREFIX=$(abspath $(ODIR)) BUILDMODE=static install - @cd $(ODIR)/bin && ln -s luajit-2.1.0-beta3 luajit + @cd $(ODIR)/bin && ln -sf luajit-2.1.0-beta3 luajit $(ODIR)/lib/libssl.a: $(ODIR)/$(OPENSSL) @echo Building OpenSSL... diff --git a/src/script.c b/src/script.c index aa175f8..75d2454 100644 --- a/src/script.c +++ b/src/script.c @@ -2,6 +2,7 @@ #include #include +#include #include "script.h" #include "http_parser.h" #include "stats.h"