diff --git a/opal/mca/event/libevent2021/libevent/event.h b/opal/mca/event/libevent2021/libevent/event.h index a3785b987a..e0c7582aeb 100644 --- a/opal/mca/event/libevent2021/libevent/event.h +++ b/opal/mca/event/libevent2021/libevent/event.h @@ -56,7 +56,7 @@ extern "C" { /* For int types. */ #include -#ifdef WIN32 +#if defined(WIN32) && !defined(__CYGWIN__) #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN #endif diff --git a/opal/mca/event/libevent2021/libevent/include/event2/util.h b/opal/mca/event/libevent2021/libevent/include/event2/util.h index 2c49999209..72432315bd 100644 --- a/opal/mca/event/libevent2021/libevent/include/event2/util.h +++ b/opal/mca/event/libevent2021/libevent/include/event2/util.h @@ -67,7 +67,7 @@ extern "C" { #include #endif -#ifdef WIN32 +#if defined(WIN32) && !defined(__CYGWIN__) #include #else #include