summaryrefslogtreecommitdiffstats
path: root/crypto/openssl/crypto/des/enc_read.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/openssl/crypto/des/enc_read.c')
-rw-r--r--crypto/openssl/crypto/des/enc_read.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/openssl/crypto/des/enc_read.c b/crypto/openssl/crypto/des/enc_read.c
index c70fb68..e7da2ec 100644
--- a/crypto/openssl/crypto/des/enc_read.c
+++ b/crypto/openssl/crypto/des/enc_read.c
@@ -147,7 +147,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
OpenPOWER on IntegriCloud