summaryrefslogtreecommitdiffstats
path: root/crypto/des
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2009-03-31 21:57:26 +0000
committerDr. Stephen Henson <steve@openssl.org>2009-03-31 21:57:26 +0000
commit5cd0cf8cce794435822498599a2793b99c961b43 (patch)
treeed7b18fec48b8fd023562c52fc923e69a00419b5 /crypto/des
parent49cb959494bf4488543a709022a3d7372b8c9256 (diff)
Fix other read call too.
Diffstat (limited to 'crypto/des')
-rw-r--r--crypto/des/enc_read.c4
1 files changed, 4 insertions, 0 deletions
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