Fix two MSVC warnings in apps.c
authorFdaSilvaYY <fdasilvayy@gmail.com>
Wed, 16 Aug 2017 13:40:40 +0000 (15:40 +0200)
committerRich Salz <rsalz@openssl.org>
Wed, 16 Aug 2017 14:36:34 +0000 (10:36 -0400)
warning C4996: 'fileno': The POSIX name for this item is deprecated.

Reviewed-by: Andy Polyakov <appro@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4172)

e_os.h

diff --git a/e_os.h b/e_os.h
index d4cef609bbbf82bf6001b3f9499e0b3c7d99aadb..fa40e686331e5095091983ee9be5e5ce94cfec99 100644 (file)
--- a/e_os.h
+++ b/e_os.h
@@ -507,6 +507,7 @@ struct servent *PASCAL getservbyname(const char *, const char *);
 #    define strdup _strdup
 #   endif
 #   define unlink _unlink
+#   define fileno _fileno
 #  endif
 # else
 #  include <strings.h>