diff --git a/Makefile b/Makefile index d0e675c7..7dcecb26 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,6 @@ USE_STATIC := no USE_MESHNET := no USE_UPNP := no - ifeq ($(WEBSOCKETS),1) NEEDED_CXXFLAGS += -DWITH_EVENTS DAEMON_SRC += Websocket.cpp diff --git a/debian/patches/01-tune-build-opts.patch b/debian/patches/01-tune-build-opts.patch index 06ad55fa..fba12f4e 100644 --- a/debian/patches/01-tune-build-opts.patch +++ b/debian/patches/01-tune-build-opts.patch @@ -1,5 +1,5 @@ diff --git a/Makefile b/Makefile -index 7d04ba0..33ee184 100644 +index b6fc795..abc3ace 100644 --- a/Makefile +++ b/Makefile @@ -9,10 +9,10 @@ DEPS := obj/make.dep @@ -11,6 +11,6 @@ index 7d04ba0..33ee184 100644 USE_STATIC := no USE_MESHNET := no USE_UPNP := no - - ifeq ($(UNAME),Darwin) - DAEMON_SRC += DaemonLinux.cpp + + ifeq ($(WEBSOCKETS),1) + NEEDED_CXXFLAGS += -DWITH_EVENTS