summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
Diffstat (limited to 'crypto')
-rw-r--r--crypto/rand/rand_egd.c2
-rw-r--r--crypto/ui/ui_openssl.c6
-rw-r--r--crypto/uid.c4
3 files changed, 4 insertions, 8 deletions
diff --git a/crypto/rand/rand_egd.c b/crypto/rand/rand_egd.c
index ef552119b8..bac8d609c4 100644
--- a/crypto/rand/rand_egd.c
+++ b/crypto/rand/rand_egd.c
@@ -38,7 +38,7 @@ int RAND_egd_bytes(const char *path, int bytes)
# else
-# include OPENSSL_UNISTD
+# include <unistd.h>
# include <stddef.h>
# include <sys/types.h>
# include <sys/socket.h>
diff --git a/crypto/ui/ui_openssl.c b/crypto/ui/ui_openssl.c
index 2b5e5c1f02..4c1ec554ba 100644
--- a/crypto/ui/ui_openssl.c
+++ b/crypto/ui/ui_openssl.c
@@ -34,11 +34,7 @@
# include <errno.h>
# if !defined(OPENSSL_SYS_MSDOS) && !defined(OPENSSL_SYS_VMS)
-# ifdef OPENSSL_UNISTD
-# include OPENSSL_UNISTD
-# else
-# include <unistd.h>
-# endif
+# include <unistd.h>
/*
* If unistd.h defines _POSIX_VERSION, we conclude that we are on a POSIX
* system and have sigaction and termios.
diff --git a/crypto/uid.c b/crypto/uid.c
index 3ae93f6b47..55e276dfe4 100644
--- a/crypto/uid.c
+++ b/crypto/uid.c
@@ -19,7 +19,7 @@ int OPENSSL_issetugid(void)
#elif defined(__OpenBSD__) || (defined(__FreeBSD__) && __FreeBSD__ > 2) || defined(__DragonFly__)
-# include OPENSSL_UNISTD
+# include <unistd.h>
int OPENSSL_issetugid(void)
{
@@ -28,7 +28,7 @@ int OPENSSL_issetugid(void)
#else
-# include OPENSSL_UNISTD
+# include <unistd.h>
# include <sys/types.h>
# if defined(__GLIBC__) && defined(__GLIBC_PREREQ)