From: Richard Levitte Date: Fri, 25 Aug 2017 12:51:45 +0000 (+0200) Subject: NO_SYS_TYPES_H isn't defined anywhere, stop using it as a guard X-Git-Tag: OpenSSL_1_1_1-pre1~764 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=b379fe6cd046b9dd8a62309dcbaded763e2d4187 NO_SYS_TYPES_H isn't defined anywhere, stop using it as a guard This is a vestige from pre-1.1.0 OpenSSL Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/4256) --- diff --git a/apps/apps.c b/apps/apps.c index 79ef933935..6f93249391 100644 --- a/apps/apps.c +++ b/apps/apps.c @@ -18,9 +18,7 @@ #include #include #include -#ifndef NO_SYS_TYPES_H -# include -#endif +#include #ifndef OPENSSL_NO_POSIX_IO # include # include diff --git a/crypto/asn1/a_digest.c b/crypto/asn1/a_digest.c index 46bff0d88f..c84ecc9b4b 100644 --- a/crypto/asn1/a_digest.c +++ b/crypto/asn1/a_digest.c @@ -9,13 +9,10 @@ #include #include +#include #include "internal/cryptlib.h" -#ifndef NO_SYS_TYPES_H -# include -#endif - #include #include #include diff --git a/crypto/asn1/a_sign.c b/crypto/asn1/a_sign.c index 5683cbbe83..3350459543 100644 --- a/crypto/asn1/a_sign.c +++ b/crypto/asn1/a_sign.c @@ -9,13 +9,10 @@ #include #include +#include #include "internal/cryptlib.h" -#ifndef NO_SYS_TYPES_H -# include -#endif - #include #include #include diff --git a/crypto/asn1/a_verify.c b/crypto/asn1/a_verify.c index ec51d3e7cd..9b57e74070 100644 --- a/crypto/asn1/a_verify.c +++ b/crypto/asn1/a_verify.c @@ -9,13 +9,10 @@ #include #include +#include #include "internal/cryptlib.h" -#ifndef NO_SYS_TYPES_H -# include -#endif - #include #include #include diff --git a/crypto/rand/randfile.c b/crypto/rand/randfile.c index f502642997..d024f69fe6 100644 --- a/crypto/rand/randfile.c +++ b/crypto/rand/randfile.c @@ -21,9 +21,7 @@ #ifdef OPENSSL_SYS_VMS # include #endif -#ifndef NO_SYS_TYPES_H -# include -#endif +#include #ifndef OPENSSL_NO_POSIX_IO # include # include diff --git a/crypto/x509/by_dir.c b/crypto/x509/by_dir.c index 201ed12c45..d8142977a8 100644 --- a/crypto/x509/by_dir.c +++ b/crypto/x509/by_dir.c @@ -10,12 +10,10 @@ #include #include #include +#include #include "internal/cryptlib.h" -#ifndef NO_SYS_TYPES_H -# include -#endif #ifndef OPENSSL_NO_POSIX_IO # include #endif diff --git a/e_os.h b/e_os.h index 1db29f601c..0ec6da971e 100644 --- a/e_os.h +++ b/e_os.h @@ -323,9 +323,7 @@ extern FILE *_imp___iob; # else # include # endif -# ifndef NO_SYS_TYPES_H -# include -# endif +# include # ifdef OPENSSL_SYS_WIN32_CYGWIN # include # include diff --git a/include/openssl/buffer.h b/include/openssl/buffer.h index 0eb90bbf52..6f243bac64 100644 --- a/include/openssl/buffer.h +++ b/include/openssl/buffer.h @@ -22,10 +22,7 @@ extern "C" { #endif # include - -# if !defined(NO_SYS_TYPES_H) -# include -# endif +# include /* * These names are outdated as of OpenSSL 1.1; a future release diff --git a/include/openssl/seed.h b/include/openssl/seed.h index bb97131d76..de10b08572 100644 --- a/include/openssl/seed.h +++ b/include/openssl/seed.h @@ -52,9 +52,7 @@ extern "C" { # endif # endif -# if !defined(NO_SYS_TYPES_H) -# include -# endif +# include # define SEED_BLOCK_SIZE 16 # define SEED_KEY_LENGTH 16 diff --git a/ssl/ssl_cert.c b/ssl/ssl_cert.c index ce4a09fad5..a0dd878ef7 100644 --- a/ssl/ssl_cert.c +++ b/ssl/ssl_cert.c @@ -9,12 +9,9 @@ */ #include +#include #include "e_os.h" -#ifndef NO_SYS_TYPES_H -# include -#endif - #include "internal/o_dir.h" #include #include