File: fix-mpi3-build.patch

package info (click to toggle)
tree-puzzle 5.3~rc16%2Bdfsg-14
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,420 kB
  • sloc: ansic: 25,401; sh: 637; makefile: 216
file content (20 lines) | stat: -rw-r--r-- 473 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
From: Alberto Garcia <berto@igalia.com>
Subject: Replace obsolete MPI-2.0 API with their MPI-3.0 equivalents
Bug-Debian: https://bugs.debian.org/951984
--- a/src/ppuzzle.c
+++ b/src/ppuzzle.c
@@ -21,11 +21,14 @@
 #endif
 
 #define EXTERN extern
+#define OMPI_OMIT_MPI1_COMPAT_DECLS 1
  
 #include <mpi.h>
 #include <time.h>
 #include "ppuzzle.h"
  
+#define MPI_Address MPI_Get_address
+#define MPI_Type_struct MPI_Type_create_struct
 
 int PP_IamMaster;
 int PP_IamSlave;