From f6ddbc0ae72480a3cb41d52d573d7eeb3760ff40 Mon Sep 17 00:00:00 2001 From: queueRAM Date: Sun, 30 Oct 2022 03:32:57 +0000 Subject: [PATCH] Fix issues building on some Linux systems - include sys/types.h and strings for DKRgzip - link with pthread for std::thread on some systems --- tools/Makefile | 2 +- tools/dkr_assets_tool_classes/libs/DKRGzip.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/Makefile b/tools/Makefile index 1b1fa31f..fd2cc523 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -42,7 +42,7 @@ $(BUILD_DIR)/%.o: %.cpp $(CXX) -c $< -o $@ $(CXXFLAGS) dkr_assets_tool: $(dkr_assets_tool_OBJ_FILES) - $(CXX) $^ -o $@ $(CXXFLAGS) $(LDFLAGS) + $(CXX) $^ -o $@ $(CXXFLAGS) $(LDFLAGS) -lpthread .PHONY: all clean distclean default diff --git a/tools/dkr_assets_tool_classes/libs/DKRGzip.c b/tools/dkr_assets_tool_classes/libs/DKRGzip.c index 88ea571c..5a5f7f38 100644 --- a/tools/dkr_assets_tool_classes/libs/DKRGzip.c +++ b/tools/dkr_assets_tool_classes/libs/DKRGzip.c @@ -1,6 +1,8 @@ #include #include #include +#include +#include #include "DKRGzip.h" /******************************/