From 2a5517d3075fc1a78eef54bc95873889095ff7c9 Mon Sep 17 00:00:00 2001 From: Shuichi Ihara Date: Thu, 7 Nov 2013 20:42:12 +0900 Subject: [PATCH] LU-3166 build: Fix failed OFED event checking on OFED-3.5 compat driver's header for OFED-3.5 is missing to check whether OFED events are defined in OFED-3.5. backport from http://review.whamcloud.com/#/c/6048/ Signed-off-by: Shuichi Ihara Change-Id: If7f888e4343e94021270dac79028ded46226ea6e Reviewed-on: http://review.whamcloud.com/8205 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Oleg Drokin --- lnet/autoconf/ofed.m4 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lnet/autoconf/ofed.m4 b/lnet/autoconf/ofed.m4 index 8b800c5..029b84a 100644 --- a/lnet/autoconf/ofed.m4 +++ b/lnet/autoconf/ofed.m4 @@ -40,6 +40,9 @@ AC_DEFUN([LN_CONFIG_OFED_SPEC], #include #include #include + #ifdef HAVE_COMPAT_RDMA + #include + #endif #include ],[ return (RDMA_CM_EVENT_ADDR_CHANGE == 0); @@ -56,6 +59,9 @@ AC_DEFUN([LN_CONFIG_OFED_SPEC], #include #include #include + #ifdef HAVE_COMPAT_RDMA + #include + #endif #include ],[ return (RDMA_CM_EVENT_TIMEWAIT_EXIT == 0); @@ -72,6 +78,9 @@ AC_DEFUN([LN_CONFIG_OFED_SPEC], #include #include #include + #ifdef HAVE_COMPAT_RDMA + #include + #endif #include ],[ rdma_set_reuseaddr(NULL, 1); -- 1.8.3.1