]> git.sur5r.net Git - openldap/commitdiff
Protect externs from inappropriate macro expansion.
authorKurt Zeilenga <kurt@openldap.org>
Mon, 24 May 1999 20:54:35 +0000 (20:54 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 24 May 1999 20:54:35 +0000 (20:54 +0000)
build/openldap.m4
configure

index c03c7275376138b25b36b7a0204db42d7b1d0c1a..b6207fd89219a19e4a3f3285957958dcef054c31 100644 (file)
@@ -635,7 +635,7 @@ AC_MSG_CHECKING([strdup declaration])
 AC_CACHE_VAL(ol_cv_dcl_strdup,[
        AC_TRY_COMPILE([
 #include <string.h> ],
-       [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 <time.h>],
-               [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
index c1d55019789c18885dc38e8b69cba397cfe9dd26..9611bb7c730bf531408fd091bafe32cd309401e7 100755 (executable)
--- a/configure
+++ b/configure
@@ -11239,7 +11239,7 @@ else
 
 #include <string.h> 
 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