Cleanup vxworks support to be able to compile for VxWorks 7
[openssl.git] / crypto / bio / b_addr.c
index abec7bb8dbba47f04a58945cba8a7b3208a9d955..a2fd4c9903d0e5cd5f3ca1ded6b29efe141594c1 100644 (file)
@@ -782,7 +782,12 @@ int BIO_lookup_ex(const char *host, const char *service, int lookup_type,
                  * anyway [above getaddrinfo/gai_strerror is]. We just let
                  * system administrator figure this out...
                  */
+# if defined(OPENSSL_SYS_VXWORKS)
+                /* h_errno doesn't exist on VxWorks */
+                SYSerr(SYS_F_GETHOSTBYNAME, 1000 );
+# else
                 SYSerr(SYS_F_GETHOSTBYNAME, 1000 + h_errno);
+# endif
 #else
                 SYSerr(SYS_F_GETHOSTBYNAME, WSAGetLastError());
 #endif