aboutsummaryrefslogtreecommitdiff
path: root/openssl/crypto/bio/bio_lcl.h
diff options
context:
space:
mode:
Diffstat (limited to 'openssl/crypto/bio/bio_lcl.h')
-rw-r--r--openssl/crypto/bio/bio_lcl.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/openssl/crypto/bio/bio_lcl.h b/openssl/crypto/bio/bio_lcl.h
index dba2919d4..e7f7ec8d8 100644
--- a/openssl/crypto/bio/bio_lcl.h
+++ b/openssl/crypto/bio/bio_lcl.h
@@ -18,11 +18,19 @@
#define UP_ftell ftell
#define UP_fflush fflush
#define UP_ferror ferror
+#ifdef _WIN32
+#define UP_fileno _fileno
+#define UP_open _open
+#define UP_read _read
+#define UP_write _write
+#define UP_lseek _lseek
+#define UP_close _close
+#else
#define UP_fileno fileno
-
#define UP_open open
#define UP_read read
#define UP_write write
#define UP_lseek lseek
#define UP_close close
#endif
+#endif