From 352135e58b877906d886b8b4e960ac99af7df3f2 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Mon, 24 May 1999 20:54:35 +0000 Subject: [PATCH] Protect externs from inappropriate macro expansion. --- build/openldap.m4 | 4 ++-- configure | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build/openldap.m4 b/build/openldap.m4 index c03c727537..b6207fd892 100644 --- a/build/openldap.m4 +++ b/build/openldap.m4 @@ -635,7 +635,7 @@ AC_MSG_CHECKING([strdup declaration]) AC_CACHE_VAL(ol_cv_dcl_strdup,[ AC_TRY_COMPILE([ #include ], - [extern char *strdup();], + [extern char *(strdup)();], [ol_cv_dcl_strdup=yes], [ol_cv_dcl_strdup=no])]) AC_MSG_RESULT($ol_cv_dcl_strdup) @@ -695,7 +695,7 @@ dnl check return type of ctime_r() AC_DEFUN(OL_FUNC_CTIME_R_TYPE, [AC_CACHE_CHECK(return type of ctime_r, ol_cv_func_ctime_r_type, [AC_TRY_COMPILE([#include ], - [int ctime_r();], + [extern int (ctime_r)();], ol_cv_func_ctime_r_type="int", ol_cv_func_ctime_r_type="charp") ]) if test $ol_cv_func_ctime_r_type = "int" ; then diff --git a/configure b/configure index c1d5501978..9611bb7c73 100755 --- a/configure +++ b/configure @@ -11239,7 +11239,7 @@ else #include int main() { -extern char *strdup(); +extern char *(strdup)(); ; return 0; } EOF if { (eval echo configure:11246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then -- 2.39.5