Added checking for QNX operating system to make mbedtls build on QNX
diff --git a/library/net.c b/library/net.c
index 8b96321..93bf046 100644
--- a/library/net.c
+++ b/library/net.c
@@ -28,7 +28,7 @@
 #if defined(MBEDTLS_NET_C)
 
 #if !defined(unix) && !defined(__unix__) && !defined(__unix) && \
-    !defined(__APPLE__) && !defined(_WIN32)
+    !defined(__APPLE__) && !defined(_WIN32) && !defined(__QNXNTO__)
 #error "This module only works on Unix and Windows, see MBEDTLS_NET_C in config.h"
 #endif