aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crypto/des/des_locl.h6
-rw-r--r--crypto/des/read_pwd.c6
-rw-r--r--e_os.h2
3 files changed, 11 insertions, 3 deletions
diff --git a/crypto/des/des_locl.h b/crypto/des/des_locl.h
index d6ea17cb68..e50fa8fb38 100644
--- a/crypto/des/des_locl.h
+++ b/crypto/des/des_locl.h
@@ -72,7 +72,11 @@
#ifndef MSDOS
#if !defined(VMS) || defined(__DECC)
-#include OPENSSL_UNISTD
+#ifdef OPENSSL_UNISTD
+# include OPENSSL_UNISTD
+#else
+# include <unistd.h>
+#endif
#include <math.h>
#endif
#endif
diff --git a/crypto/des/read_pwd.c b/crypto/des/read_pwd.c
index a262f98ed7..ffa72be734 100644
--- a/crypto/des/read_pwd.c
+++ b/crypto/des/read_pwd.c
@@ -58,7 +58,11 @@
#if !defined(MSDOS) && !defined(VMS) && !defined(WIN32)
#include <openssl/opensslconf.h>
-#include OPENSSL_UNISTD
+#ifdef OPENSSL_UNISTD
+# include OPENSSL_UNISTD
+#else
+# include <unistd.h>
+#endif
/* If unistd.h defines _POSIX_VERSION, we conclude that we
* are on a POSIX system and have sigaction and termios. */
#if defined(_POSIX_VERSION)
diff --git a/e_os.h b/e_os.h
index 12f39788eb..f651b32fd5 100644
--- a/e_os.h
+++ b/e_os.h
@@ -252,7 +252,7 @@ extern "C" {
# else
/* !defined VMS */
# ifdef OPENSSL_UNISTD
-# include OPENSLL_UNISTD
+# include OPENSSL_UNISTD
# else
# include <unistd.h>
# endif