aboutsummaryrefslogtreecommitdiff
path: root/crypto/async/arch
diff options
context:
space:
mode:
authorCorinna Vinschen <vinschen@redhat.com>2016-01-16 19:30:48 +0100
committerRichard Levitte <levitte@openssl.org>2016-01-18 16:16:00 +0100
commit8d35ceb98f3dbd55cf55edc3d2a814d0dd6d520d (patch)
treeb434ee6f20661c4b02ed0760400fcd4dda70c3d5 /crypto/async/arch
parent23d526eca9251618b3f0d81c4a2ad6d4f25d7563 (diff)
downloadopenssl-8d35ceb98f3dbd55cf55edc3d2a814d0dd6d520d.zip
openssl-8d35ceb98f3dbd55cf55edc3d2a814d0dd6d520d.tar.gz
openssl-8d35ceb98f3dbd55cf55edc3d2a814d0dd6d520d.tar.bz2
Use POSIX functions on Cygwin, not Win32 function
Signed-off-by: Corinna Vinschen <vinschen@redhat.com> Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto/async/arch')
-rw-r--r--crypto/async/arch/async_posix.h2
-rw-r--r--crypto/async/arch/async_win.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/crypto/async/arch/async_posix.h b/crypto/async/arch/async_posix.h
index c247888..475b56f 100644
--- a/crypto/async/arch/async_posix.h
+++ b/crypto/async/arch/async_posix.h
@@ -54,7 +54,7 @@
#define OPENSSL_ASYNC_ARCH_ASYNC_POSIX_H
#include <openssl/e_os2.h>
-#if defined(OPENSSL_SYS_UNIX) && defined(OPENSSL_THREADS)
+#if (defined(OPENSSL_SYS_UNIX) || defined(OPENSSL_SYS_CYGWIN)) && defined(OPENSSL_THREADS)
# include <unistd.h>
diff --git a/crypto/async/arch/async_win.h b/crypto/async/arch/async_win.h
index b247f59..31f2482 100644
--- a/crypto/async/arch/async_win.h
+++ b/crypto/async/arch/async_win.h
@@ -55,7 +55,7 @@
* This is the same detection used in cryptlib to set up the thread local
* storage that we depend on, so just copy that
*/
-#if defined(_WIN32) || defined(__CYGWIN__)
+#if defined(_WIN32)
#include <openssl/async.h>
# define ASYNC_WIN
# define ASYNC_ARCH