diff options
Diffstat (limited to 'src/lib/libcrypto/des/enc_read.c')
-rw-r--r-- | src/lib/libcrypto/des/enc_read.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/libcrypto/des/enc_read.c b/src/lib/libcrypto/des/enc_read.c index c70fb686b8..e7da2ec66b 100644 --- a/src/lib/libcrypto/des/enc_read.c +++ b/src/lib/libcrypto/des/enc_read.c | |||
@@ -147,7 +147,11 @@ int DES_enc_read(int fd, void *buf, int len, DES_key_schedule *sched, | |||
147 | /* first - get the length */ | 147 | /* first - get the length */ |
148 | while (net_num < HDRSIZE) | 148 | while (net_num < HDRSIZE) |
149 | { | 149 | { |
150 | #ifndef _WIN32 | ||
150 | i=read(fd,(void *)&(net[net_num]),HDRSIZE-net_num); | 151 | i=read(fd,(void *)&(net[net_num]),HDRSIZE-net_num); |
152 | #else | ||
153 | i=_read(fd,(void *)&(net[net_num]),HDRSIZE-net_num); | ||
154 | #endif | ||
151 | #ifdef EINTR | 155 | #ifdef EINTR |
152 | if ((i == -1) && (errno == EINTR)) continue; | 156 | if ((i == -1) && (errno == EINTR)) continue; |
153 | #endif | 157 | #endif |