On 31/10/2017 08:50, Gilles Gouaillardet wrote:
Marco,
can you please give the attached patch a try ?
so far, it compiles for me.
thanks Gilles,
it works
btw, i faced some issues (conflicting definitions between windows.h and
netdb.h),
did you need some patches in order to solve these issues ?
attached the one I used
Cheers,
Gilles
Regards
Marco
--- origsrc/openmpi-2.1.2/opal/mca/event/libevent2022/libevent/event.h
2017-05-10 17:40:49.000000000 +0200
+++ src/openmpi-2.1.2/opal/mca/event/libevent2022/libevent/event.h
2017-09-28 20:15:47.546805000 +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-2.1.2/opal/mca/event/libevent2022/libevent2022.h
2017-05-10 17:41:36.000000000 +0200
+++ src/openmpi-2.1.2/opal/mca/event/libevent2022/libevent2022.h
2017-09-28 20:16:31.344082400 +0200
@@ -25,7 +25,7 @@
#include <sys/types.h>
#endif
-#ifdef WIN32
+#if defined(WIN32) && !defined(__CYGWIN__)
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#undef WIN32_LEAN_AND_MEAN
_______________________________________________
devel mailing list
devel@lists.open-mpi.org
https://lists.open-mpi.org/mailman/listinfo/devel