Hi folks

We have a patch that was required on libevent 2.0.21 for cygwin:

--- origsrc/openmpi-1.7.3rc2/opal/mca/event/libevent2021/libevent/event.h       
2013-09-26 20:22:49.000000000 +0200
+++ src/openmpi-1.7.3rc2/opal/mca/event/libevent2021/libevent/event.h   
2013-10-06 18:48:46.251370200 +0200
@@ -56,7 +56,7 @@ extern "C" {
 /* For int types. */
 #include <evutil.h>
 
-#ifdef WIN32
+#if defined(WIN32) && !defined(__CYGWIN__)
 #ifndef WIN32_LEAN_AND_MEAN
 #define WIN32_LEAN_AND_MEAN
 #endif
--- 
origsrc/openmpi-1.7.3rc2/opal/mca/event/libevent2021/libevent/include/event2/util.h
 2013-09-26 20:22:49.000000000 +0200
+++ 
src/openmpi-1.7.3rc2/opal/mca/event/libevent2021/libevent/include/event2/util.h 
    2013-10-06 18:49:38.174340100 +0200
@@ -67,7 +67,7 @@ extern "C" {
 #include <netdb.h>
 #endif
 
-#ifdef WIN32
+#if defined(WIN32) && !defined(__CYGWIN__)
 #include <winsock2.h>
 #else
 #include <sys/socket.h>


Thought you might want it upstream
Ralph

***********************************************************************
To unsubscribe, send an e-mail to [email protected] with
unsubscribe libevent-users    in the body.

Reply via email to