summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/apps.c4
-rw-r--r--crypto/asn1/a_digest.c5
-rw-r--r--crypto/asn1/a_sign.c5
-rw-r--r--crypto/asn1/a_verify.c5
-rw-r--r--crypto/rand/randfile.c4
-rw-r--r--crypto/x509/by_dir.c4
-rw-r--r--e_os.h4
-rw-r--r--include/openssl/buffer.h5
-rw-r--r--include/openssl/seed.h4
-rw-r--r--ssl/ssl_cert.c5
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 <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 46bff0d88f..c84ecc9b4b 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 7e21a5ec9f..3b261eba41 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 00ab136f02..fb3607cbbd 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 15fa9dce52..dbd03ff2bd 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 f3a1f05428..21672a7ef5 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 8f52dd47f6..80a36f5299 100644
--- a/e_os.h
+++ b/e_os.h
@@ -344,9 +344,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 91f0e07ff9..35160b4f26 100644
--- a/include/openssl/buffer.h
+++ b/include/openssl/buffer.h
@@ -21,10 +21,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 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 <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 0c931db97d..8699487af2 100644
--- a/ssl/ssl_cert.c
+++ b/ssl/ssl_cert.c
@@ -14,12 +14,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>