From: Steve Wise Date: Fri, 14 Oct 2016 16:22:45 +0000 (-0700) Subject: rdma.m4: determine arg count for string_get_size X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=847f3c4bebae8cc983f744d188761a3c728e4e5d;p=~aditr%2Fcompat.git rdma.m4: determine arg count for string_get_size Signed-off-by: Steve Wise --- 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