From aa2fd6cfedcc20b4d5a549db4b67127d31bfd5aa Mon Sep 17 00:00:00 2001 From: orbea Date: Thu, 24 Jan 2019 13:48:46 -0800 Subject: [PATCH] Makefile.common: Fix building discord-rpc with --disable-threads. --- Makefile.common | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile.common b/Makefile.common index 9a44cc7e01..074ff48601 100644 --- a/Makefile.common +++ b/Makefile.common @@ -1744,6 +1744,11 @@ ifeq ($(HAVE_NETWORKING), 1) NEED_CXX_LINKER = 1 DEFINES += -DHAVE_DISCORD DEFINES += -Ideps/discord-rpc/include/ -Ideps/discord-rpc/thirdparty/rapidjson-1.1.0/include/ + + ifneq ($(HAVE_THREADS), 1) + DEFINES += -DDISCORD_DISABLE_IO_THREAD + endif + OBJ += deps/discord-rpc/src/discord_rpc.o \ deps/discord-rpc/src/rpc_connection.o \ deps/discord-rpc/src/serialization.o \