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