From: Dr. Stephen Henson Date: Tue, 31 Mar 2009 21:39:54 +0000 (+0000) Subject: Oops. X-Git-Tag: OpenSSL_1_0_0-beta1~6 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=783a73c47f34895f500a34d316b2104b28f2b184;p=oweals%2Fopenssl.git Oops. --- diff --git a/crypto/des/enc_read.c b/crypto/des/enc_read.c index b86620f568..372ef667b8 100644 --- a/crypto/des/enc_read.c +++ b/crypto/des/enc_read.c @@ -150,7 +150,11 @@ int DES_enc_read(int fd, void *buf, int len, DES_key_schedule *sched, /* first - get the length */ while (net_num < HDRSIZE) { +#ifndef _WIN32 i=read(fd,(void *)&(net[net_num]),HDRSIZE-net_num); +#else + i=_read(fd,(void *)&(net[net_num]),HDRSIZE-net_num); +#endif #ifdef EINTR if ((i == -1) && (errno == EINTR)) continue; #endif