The attached patch allows the compilation of openmpi-3.1.0
on cygwin 32 and 64 bit with gcc 7.3


It is basically the same already proposed in the past for 2.1.2

I will release the cygwin package as soon we roll out
the gcc 7.3 compiler

Regards
Marco
--- origsrc/openmpi-3.1.0/opal/mca/event/libevent2022/libevent/event.h  
2018-05-07 22:42:22.000000000 +0200
+++ src/openmpi-3.1.0/opal/mca/event/libevent2022/libevent/event.h      
2018-05-21 15:05:39.090000000 +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
_______________________________________________
devel mailing list
devel@lists.open-mpi.org
https://lists.open-mpi.org/mailman/listinfo/devel

Reply via email to