From 5b9e0d821dd428792bd51ed03af2b800924ce69d Mon Sep 17 00:00:00 2001 From: root Date: Sun, 12 May 2013 01:16:13 -0700 Subject: Sun May 12 01:15:39 PDT 2013 --- extra/hdf5-openmpi/mpi.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 extra/hdf5-openmpi/mpi.patch (limited to 'extra/hdf5-openmpi/mpi.patch') diff --git a/extra/hdf5-openmpi/mpi.patch b/extra/hdf5-openmpi/mpi.patch new file mode 100644 index 000000000..4fadc13e2 --- /dev/null +++ b/extra/hdf5-openmpi/mpi.patch @@ -0,0 +1,18 @@ +Prevent accidental inclusion of mpi c++ headers +when hdf5.h is included third party library + +https://bugs.gentoo.org/show_bug.cgi?id=420777 +https://bugs.archlinux.org/task/33343 + +--- a/src/H5public.h ++++ b/src/H5public.h +@@ -58,6 +58,8 @@ + # include + #endif + #ifdef H5_HAVE_PARALLEL ++# define OMPI_SKIP_MPICXX /* Make sure that cxx specific headers are not included */ ++# define MPICH_SKIP_MPICXX + # include + #ifndef MPI_FILE_NULL /*MPIO may be defined in mpi.h already */ + # include + -- cgit v1.2.3-54-g00ecf