From: Dr. Stephen Henson Date: Tue, 31 Mar 2009 21:57:26 +0000 (+0000) Subject: Fix other read call too. X-Git-Tag: OpenSSL_1_0_0-beta1~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5cd0cf8cce794435822498599a2793b99c961b43;p=openssl Fix other read call too. --- diff --git a/crypto/des/enc_read.c b/crypto/des/enc_read.c index c1f46810d2..edb6620d08 100644 --- a/crypto/des/enc_read.c +++ b/crypto/des/enc_read.c @@ -176,7 +176,11 @@ int DES_enc_read(int fd, void *buf, int len, DES_key_schedule *sched, net_num=0; while (net_num < rnum) { +#ifndef OPENSSL_SYS_WIN32 i=read(fd,(void *)&(net[net_num]),rnum-net_num); +#else + i=_read(fd,(void *)&(net[net_num]),rnum-net_num); +#endif #ifdef EINTR if ((i == -1) && (errno == EINTR)) continue; #endif