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 d4cef60..fa40e68 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>