mirror of https://github.com/eclipse/paho.mqtt.c
fix qnx compile errors
This commit is contained in:
parent
afcdeb5945
commit
6affc7809d
|
|
@ -79,7 +79,7 @@ elseif(UNIX)
|
|||
elseif(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
|
||||
set(LIBS_SYSTEM compat pthread)
|
||||
elseif(CMAKE_SYSTEM_NAME MATCHES "QNX")
|
||||
set(LIBS_SYSTEM c)
|
||||
set(LIBS_SYSTEM c socket)
|
||||
else()
|
||||
set(LIBS_SYSTEM c pthread)
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -61,6 +61,9 @@
|
|||
#include <netinet/tcp.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <netdb.h>
|
||||
#ifdef __QNXNTO__
|
||||
#define AI_ADDRCONFIG 0
|
||||
#endif
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
|
|
|
|||
Loading…
Reference in New Issue