diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 16382c10..098d0a51 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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() diff --git a/src/Socket.h b/src/Socket.h index f700f491..396b2a6e 100644 --- a/src/Socket.h +++ b/src/Socket.h @@ -61,6 +61,9 @@ #include #include #include +#ifdef __QNXNTO__ +#define AI_ADDRCONFIG 0 +#endif #include #include #include