From 6affc7809d861e189e4905a663252d2be0170d2c Mon Sep 17 00:00:00 2001 From: Sven Trittler Date: Sat, 25 Oct 2025 10:59:17 +0200 Subject: [PATCH] fix qnx compile errors --- src/CMakeLists.txt | 2 +- src/Socket.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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