This commit is contained in:
eresgit 2026-08-01 20:56:40 +02:00 committed by GitHub
commit 9ca8ba432b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View File

@ -80,6 +80,7 @@ elseif(UNIX)
set(LIBS_SYSTEM compat pthread) set(LIBS_SYSTEM compat pthread)
elseif(CMAKE_SYSTEM_NAME MATCHES "QNX") elseif(CMAKE_SYSTEM_NAME MATCHES "QNX")
set(LIBS_SYSTEM c socket) set(LIBS_SYSTEM c socket)
add_definitions(-D_QNX_SOURCE)
else() else()
set(LIBS_SYSTEM c pthread) set(LIBS_SYSTEM c pthread)
endif() endif()

View File

@ -16,6 +16,13 @@
#include "SHA1.h" #include "SHA1.h"
// In the source files using endian functions (like SHA1.c):
#ifdef __QNXNTO__
#include <gulliver.h>
#define be32toh(x) ENDIAN_BE32(x)
#define htobe32(x) ENDIAN_BE32(x)
#endif
#if !defined(OPENSSL) #if !defined(OPENSSL)
#if defined(_WIN32) #if defined(_WIN32)
#pragma comment(lib, "crypt32.lib") #pragma comment(lib, "crypt32.lib")