From 987f33b028a86f09f1d26eb987488efa4ee7d9f6 Mon Sep 17 00:00:00 2001 From: Stefan Nilsson Date: Wed, 31 Mar 2021 23:28:00 +0200 Subject: [PATCH] added fix for endian.h not found on macOS --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) 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)