mirror of https://github.com/eclipse/paho.mqtt.c
Merge d423dab407 into 5b0c7ff396
This commit is contained in:
commit
9ca8ba432b
|
|
@ -80,6 +80,7 @@ elseif(UNIX)
|
|||
set(LIBS_SYSTEM compat pthread)
|
||||
elseif(CMAKE_SYSTEM_NAME MATCHES "QNX")
|
||||
set(LIBS_SYSTEM c socket)
|
||||
add_definitions(-D_QNX_SOURCE)
|
||||
else()
|
||||
set(LIBS_SYSTEM c pthread)
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -16,6 +16,13 @@
|
|||
|
||||
#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(_WIN32)
|
||||
#pragma comment(lib, "crypt32.lib")
|
||||
|
|
|
|||
Loading…
Reference in New Issue