diff --git a/Makefile b/Makefile index f6b68a8..e39daf6 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,11 @@ VERSION := 0.03 LDFLAGS=$(shell pkg-config --libs json-c) $(shell pkg-config --libs libmosquitto) CFLAGS=-Wall $(shell pkg-config --cflags json-c) $(shell pkg-config --cflags libmosquitto) -DVERSION='"$(VERSION)"' -DWITH_TLS +ifeq ($(shell uname -s),Darwin) + MACHINE_PATH = -I "$(shell xcrun --show-sdk-path)/usr/include/machine" + CFLAGS += $(MACHINE_PATH) +endif + BINARIES=obinsectd all: $(BINARIES)