fix qnx compile errors

This commit is contained in:
Sven Trittler 2025-10-25 10:59:17 +02:00 committed by Ian Craggs
parent afcdeb5945
commit 6affc7809d
No known key found for this signature in database
GPG Key ID: A7AE1A8F2CCAB186
2 changed files with 4 additions and 1 deletions

View File

@ -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()

View File

@ -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>