From 568a5210e0fde8b5cb6a70296276d4b4c3c7dd9b Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Fri, 25 Aug 2017 14:51:45 +0200 Subject: [PATCH] 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) (cherry picked from commit b379fe6cd046b9dd8a62309dcbaded763e2d4187) --- apps/apps.c | 4 +--- crypto/asn1/a_digest.c | 5 +---- crypto/asn1/a_sign.c | 5 +---- crypto/asn1/a_verify.c | 5 +---- crypto/rand/randfile.c | 4 +--- crypto/x509/by_dir.c | 4 +--- e_os.h | 4 +--- include/openssl/buffer.h | 5 +---- include/openssl/seed.h | 4 +--- ssl/ssl_cert.c | 5 +---- 10 files changed, 10 insertions(+), 35 deletions(-) diff --git a/apps/apps.c b/apps/apps.c index 0a38cb009c..d93b83bfdd 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 7e21a5ec9f..3b261eba41 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 00ab136f02..fb3607cbbd 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 15fa9dce52..dbd03ff2bd 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 f3a1f05428..21672a7ef5 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 8f52dd47f6..80a36f5299 100644 --- a/e_os.h +++ b/e_os.h @@ -344,9 +344,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 91f0e07ff9..35160b4f26 100644 --- a/include/openssl/buffer.h +++ b/include/openssl/buffer.h @@ -21,10 +21,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 0c931db97d..8699487af2 100644 --- a/ssl/ssl_cert.c +++ b/ssl/ssl_cert.c @@ -14,12 +14,9 @@ */ #include +#include #include "e_os.h" -#ifndef NO_SYS_TYPES_H -# include -#endif - #include "internal/o_dir.h" #include #include -- 2.25.1