summaryrefslogtreecommitdiffstats
path: root/crypto/bio/bio_lcl.h
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2009-05-06 12:28:37 +0200
committerDr. Stephen Henson <steve@openssl.org>2009-05-06 12:28:37 +0200
commiteed15a831c1350360d03083b5c1ad6f384de7721 (patch)
treeee95194f0d53cfc004dd871421fe1615cfea7de9 /crypto/bio/bio_lcl.h
parentMove the time fetching code to its own static function, and thereby (diff)
downloadopenssl-eed15a831c1350360d03083b5c1ad6f384de7721.tar.xz
openssl-eed15a831c1350360d03083b5c1ad6f384de7721.zip
Fix from 1.0.0-stable.
Diffstat (limited to 'crypto/bio/bio_lcl.h')
-rw-r--r--crypto/bio/bio_lcl.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/crypto/bio/bio_lcl.h b/crypto/bio/bio_lcl.h
index dba2919d43..e7f7ec8d8b 100644
--- a/crypto/bio/bio_lcl.h
+++ b/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