From: Howard Chu Date: Sun, 2 Mar 2003 23:11:00 +0000 (+0000) Subject: Really fix accrights test. X-Git-Tag: NO_SLAP_OP_BLOCKS~213 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=348264a449cb8c0f13927384dac683229600b7fd;p=openldap Really fix accrights test. --- diff --git a/build/openldap.m4 b/build/openldap.m4 index be43e20658..d3e134c75c 100644 --- a/build/openldap.m4 +++ b/build/openldap.m4 @@ -1219,12 +1219,12 @@ AC_DEFUN([OL_SASL_COMPAT], dnl ==================================================================== dnl check for msg_accrights in msghdr AC_DEFUN(OL_MSGHDR_MSG_ACCRIGHTS, - [AC_CACHE_CHECK(msg_accrights in msghdr, ol_cv_msg_accrights, + [AC_CACHE_CHECK(msg_accrights in msghdr, ol_cv_msghdr_msg_accrights, [AC_TRY_COMPILE([#include ], [struct msghdr m; m.msg_accrightslen=0], ol_cv_msghdr_msg_accrights=yes, ol_cv_msghdr_msg_accrights=no) ]) - if test $ol_cv_func_ctime_r_type = "int" ; then + if test $ol_cv_msghdr_msg_accrights = "yes" ; then AC_DEFINE(HAVE_MSGHDR_MSG_ACCRIGHTS,1, [define if struct msghdr has msg_accrights]) fi