Initial support for MacOS.
[openssl.git] / crypto / bio / bss_sock.c
index d336b99fe81af8ea15de32b53d36029edc4e9042..1b8d04002d745fc0cdcdb818f1ed008aad852f14 100644 (file)
@@ -163,8 +163,7 @@ static int fd_free(BIO *a)
                if (a->init)
                        {
 #ifndef BIO_FD
-                       shutdown(a->num,2);
-                       closesocket(a->num);
+                       SHUTDOWN2(a->num);
 #else                  /* BIO_FD */
                        close(a->num);
 #endif