Fix issues building on some Linux systems

- include sys/types.h and strings for DKRgzip
- link with pthread for std::thread on some systems
This commit is contained in:
queueRAM
2022-11-01 00:25:03 +00:00
parent 2b2784e91c
commit f6ddbc0ae7
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -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
@@ -1,6 +1,8 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <sys/types.h>
#include "DKRGzip.h"
/******************************/