[openssl-commits] [openssl] master update

Richard Levitte levitte at openssl.org
Fri Aug 25 13:51:03 UTC 2017


The branch master has been updated
       via  b379fe6cd046b9dd8a62309dcbaded763e2d4187 (commit)
      from  0a8ddc17f57691c8e2e2446c4126fb4133d07d21 (commit)


- Log -----------------------------------------------------------------
commit b379fe6cd046b9dd8a62309dcbaded763e2d4187
Author: Richard Levitte <levitte at openssl.org>
Date:   Fri Aug 25 14:51:45 2017 +0200

    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 <rsalz at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/4256)

-----------------------------------------------------------------------

Summary of changes:
 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 79ef933..6f93249 100644
--- a/apps/apps.c
+++ b/apps/apps.c
@@ -18,9 +18,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#ifndef NO_SYS_TYPES_H
-# include <sys/types.h>
-#endif
+#include <sys/types.h>
 #ifndef OPENSSL_NO_POSIX_IO
 # include <sys/stat.h>
 # include <fcntl.h>
diff --git a/crypto/asn1/a_digest.c b/crypto/asn1/a_digest.c
index 46bff0d..c84ecc9 100644
--- a/crypto/asn1/a_digest.c
+++ b/crypto/asn1/a_digest.c
@@ -9,13 +9,10 @@
 
 #include <stdio.h>
 #include <time.h>
+#include <sys/types.h>
 
 #include "internal/cryptlib.h"
 
-#ifndef NO_SYS_TYPES_H
-# include <sys/types.h>
-#endif
-
 #include <openssl/err.h>
 #include <openssl/evp.h>
 #include <openssl/buffer.h>
diff --git a/crypto/asn1/a_sign.c b/crypto/asn1/a_sign.c
index 5683cbb..3350459 100644
--- a/crypto/asn1/a_sign.c
+++ b/crypto/asn1/a_sign.c
@@ -9,13 +9,10 @@
 
 #include <stdio.h>
 #include <time.h>
+#include <sys/types.h>
 
 #include "internal/cryptlib.h"
 
-#ifndef NO_SYS_TYPES_H
-# include <sys/types.h>
-#endif
-
 #include <openssl/bn.h>
 #include <openssl/evp.h>
 #include <openssl/x509.h>
diff --git a/crypto/asn1/a_verify.c b/crypto/asn1/a_verify.c
index ec51d3e..9b57e74 100644
--- a/crypto/asn1/a_verify.c
+++ b/crypto/asn1/a_verify.c
@@ -9,13 +9,10 @@
 
 #include <stdio.h>
 #include <time.h>
+#include <sys/types.h>
 
 #include "internal/cryptlib.h"
 
-#ifndef NO_SYS_TYPES_H
-# include <sys/types.h>
-#endif
-
 #include <openssl/bn.h>
 #include <openssl/x509.h>
 #include <openssl/objects.h>
diff --git a/crypto/rand/randfile.c b/crypto/rand/randfile.c
index f502642..d024f69 100644
--- a/crypto/rand/randfile.c
+++ b/crypto/rand/randfile.c
@@ -21,9 +21,7 @@
 #ifdef OPENSSL_SYS_VMS
 # include <unixio.h>
 #endif
-#ifndef NO_SYS_TYPES_H
-# include <sys/types.h>
-#endif
+#include <sys/types.h>
 #ifndef OPENSSL_NO_POSIX_IO
 # include <sys/stat.h>
 # include <fcntl.h>
diff --git a/crypto/x509/by_dir.c b/crypto/x509/by_dir.c
index 201ed12..d814297 100644
--- a/crypto/x509/by_dir.c
+++ b/crypto/x509/by_dir.c
@@ -10,12 +10,10 @@
 #include <stdio.h>
 #include <time.h>
 #include <errno.h>
+#include <sys/types.h>
 
 #include "internal/cryptlib.h"
 
-#ifndef NO_SYS_TYPES_H
-# include <sys/types.h>
-#endif
 #ifndef OPENSSL_NO_POSIX_IO
 # include <sys/stat.h>
 #endif
diff --git a/e_os.h b/e_os.h
index 1db29f6..0ec6da9 100644
--- a/e_os.h
+++ b/e_os.h
@@ -323,9 +323,7 @@ extern FILE *_imp___iob;
 #   else
 #    include <unistd.h>
 #   endif
-#   ifndef NO_SYS_TYPES_H
-#    include <sys/types.h>
-#   endif
+#   include <sys/types.h>
 #   ifdef OPENSSL_SYS_WIN32_CYGWIN
 #    include <io.h>
 #    include <fcntl.h>
diff --git a/include/openssl/buffer.h b/include/openssl/buffer.h
index 0eb90bb..6f243ba 100644
--- a/include/openssl/buffer.h
+++ b/include/openssl/buffer.h
@@ -22,10 +22,7 @@ extern "C" {
 #endif
 
 # include <stddef.h>
-
-# if !defined(NO_SYS_TYPES_H)
-#  include <sys/types.h>
-# endif
+# include <sys/types.h>
 
 /*
  * 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 bb97131..de10b08 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 <sys/types.h>
-# endif
+# include <sys/types.h>
 
 # define SEED_BLOCK_SIZE 16
 # define SEED_KEY_LENGTH 16
diff --git a/ssl/ssl_cert.c b/ssl/ssl_cert.c
index ce4a09f..a0dd878 100644
--- a/ssl/ssl_cert.c
+++ b/ssl/ssl_cert.c
@@ -9,12 +9,9 @@
  */
 
 #include <stdio.h>
+#include <sys/types.h>
 
 #include "e_os.h"
-#ifndef NO_SYS_TYPES_H
-# include <sys/types.h>
-#endif
-
 #include "internal/o_dir.h"
 #include <openssl/lhash.h>
 #include <openssl/bio.h>


More information about the openssl-commits mailing list