From 847f3c4bebae8cc983f744d188761a3c728e4e5d Mon Sep 17 00:00:00 2001 From: Steve Wise Date: Fri, 14 Oct 2016 09:22:45 -0700 Subject: [PATCH] rdma.m4: determine arg count for string_get_size Signed-off-by: Steve Wise --- config/rdma.m4 | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/config/rdma.m4 b/config/rdma.m4 index b9ff0ba..f6f9a8d 100644 --- a/config/rdma.m4 +++ b/config/rdma.m4 @@ -3157,6 +3157,29 @@ AC_DEFUN([LINUX_CONFIG_COMPAT], AC_MSG_RESULT(no) ]) + AC_MSG_CHECKING([if string_helpers.h string_get_size has 5 params]) + LB_LINUX_TRY_COMPILE([ + #include + #include + #include + #include + #include + #include + #include + #include + #include + ],[ + (void)string_get_size(0, 0, 0, NULL, 0); + + return 0; + ],[ + AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_STRING_GET_SIZE_5_PARAMS, 1, + [string_get_size has 5 params]) + ],[ + AC_MSG_RESULT(no) + ]) + ]) # # COMPAT_CONFIG_HEADERS -- 2.46.0