Fix to build better with DJGPP.
[openssl.git] / crypto / bio / b_sock.c
index 3188bcc..a7da258 100644 (file)
@@ -467,6 +467,12 @@ int BIO_sock_init(void)
                        }
                }
 #endif /* OPENSSL_SYS_WINDOWS */
+#ifdef WATT32
+       extern int _watt_do_exit;
+       _watt_do_exit = 0;    /* don't make sock_init() call exit() */
+       if (sock_init())
+               return (-1);
+#endif
        return(1);
        }