add handling for other linux distros

This commit is contained in:
jankes44
2025-12-22 01:38:43 +00:00
parent 5d8bce819c
commit 0fa9a2f46a
9 changed files with 30 additions and 12 deletions

View File

@@ -7,7 +7,10 @@ target_link_libraries(qc
)
if (WIN32)
target_link_libraries(qc ws2_32)
target_link_libraries(qc ws2_32)
else()
target_link_libraries(qc pthread md)
target_link_libraries(qc pthread)
if (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
target_link_libraries(qc md)
endif()
endif()

View File

@@ -29,6 +29,7 @@ extern "C"
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <cstring>
#include "crc32.h"