Add support for DJGPP.
[openssl.git] / crypto / bio / b_sock.c
index dcaef68ea7cf658677bc3120666a4dc25a439202..45bd7c47e87bc7c1d5fa9bd919d74c403169ae84 100644 (file)
@@ -484,7 +484,11 @@ int BIO_socket_ioctl(int fd, long type, unsigned long *arg)
        {
        int i;
 
+#ifdef __DJGPP__
+       i=ioctlsocket(fd,type,(char *)arg);
+#else
        i=ioctlsocket(fd,type,arg);
+#endif /* __DJGPP__ */
        if (i < 0)
                SYSerr(SYS_F_IOCTLSOCKET,get_last_socket_error());
        return(i);