@@ -23,6 +23,9 @@
# include <netdb.h> //gethostbyname for the client
# include <unistd.h> // read, write, close
# include <arpa/inet.h>
+#ifdef __QNX__
+#include <sys/socket.h>
+#endif
# define CLOSESOCKET(S) close(S)
#endif
@@ -24,6 +24,9 @@
# include <sys/ioctl.h>
#define MAXBACKLOG 100
@@ -33,7 +33,9 @@
/* Endianness */
#if defined(__linux__) || defined(__APPLE__)
+# ifndef __QNX__
# include <endian.h>
+# endif
# if ( __BYTE_ORDER != __LITTLE_ENDIAN )
# define UA_NON_LITTLEENDIAN_ARCHITECTURE
# endif