From: Kurt Zeilenga Date: Mon, 24 May 1999 20:54:35 +0000 (+0000) Subject: Protect externs from inappropriate macro expansion. X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~10 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=352135e58b877906d886b8b4e960ac99af7df3f2;p=openldap Protect externs from inappropriate macro expansion. --- 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