dfaf77
diff -up papi-5.2.0/src/components/infiniband/linux-infiniband.c.decl papi-5.2.0/src/components/infiniband/linux-infiniband.c
dfaf77
--- papi-5.2.0/src/components/infiniband/linux-infiniband.c.decl	2015-08-10 16:04:04.528460972 -0400
dfaf77
+++ papi-5.2.0/src/components/infiniband/linux-infiniband.c	2015-08-10 16:06:25.243444756 -0400
dfaf77
@@ -27,6 +27,9 @@
dfaf77
 #include "papi_vector.h"
dfaf77
 #include "papi_memory.h"
dfaf77
 
dfaf77
+/* This is a hack remove consts in the declarations to avoid decl mismatch. */
dfaf77
+#define const 
dfaf77
+
dfaf77
 #include "linux-infiniband.h"
dfaf77
 
dfaf77
 void (*_dl_non_dynamic_init)(void) __attribute__((weak));