NO_SYS_TYPES_H isn't defined anywhere, stop using it as a guard
authorRichard Levitte <levitte@openssl.org>
Fri, 25 Aug 2017 12:51:45 +0000 (14:51 +0200)
committerRichard Levitte <levitte@openssl.org>
Fri, 25 Aug 2017 13:50:59 +0000 (15:50 +0200)
This is a vestige from pre-1.1.0 OpenSSL

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

apps/apps.c
crypto/asn1/a_digest.c
crypto/asn1/a_sign.c
crypto/asn1/a_verify.c
crypto/rand/randfile.c
crypto/x509/by_dir.c
e_os.h
include/openssl/buffer.h
include/openssl/seed.h
ssl/ssl_cert.c

index 79ef933935594c8f34e00536e48e78fd53eae88a..6f932493910df245e9d8a5a53231b1b73242a09e 100644 (file)
@@ -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>
index 46bff0d88f0282fd53f7648daaee3bf8f00ae9cc..c84ecc9b4bce9cd0a8a00a77daa50e6345245448 100644 (file)
@@ -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>
index 5683cbbe8300d2fc27b5cd9326879cbe4da1e4bc..33504595432d0a3863cb199a21ccac31d58070d8 100644 (file)
@@ -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>
index ec51d3e7cdacceec6d0464aac7558a5b594fb1c7..9b57e74070a2a1981c7cf2631c1087e3754152a5 100644 (file)
@@ -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>
index f5026429977bb5ef25a573d01b842eff13444385..d024f69fe64ac56b562faf6a8b9e9e199d7a4a13 100644 (file)
@@ -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>
index 201ed12c45b2231972eb396fd7cab2c1ee8a68da..d8142977a86fe9db6389b685993cadb4ffa4c902 100644 (file)
 #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 1db29f601cdbd7657adda3ca338b654557d44ebb..0ec6da971e40f71cf2356ce7b1cef4808c9e8af1 100644 (file)
--- 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>
index 0eb90bbf524d0e0e44846f792a614fda30bddd76..6f243bac649cede57c137060f77a8d7de40093ad 100644 (file)
@@ -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
index bb97131d76b89d217b8d28e9239725b11c9f1009..de10b08572018aceada115b3f21249222acfedf1 100644 (file)
@@ -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
index ce4a09fad50e581fb54ce1587fcec298ed92eadc..a0dd878ef77f10cab93f48711da3e4c08058e952 100644 (file)
@@ -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>