mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-21 22:34:08 -05:00
Protect externs from inappropriate macro expansion.
This commit is contained in:
parent
fffc29df9b
commit
352135e58b
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
2
configure
vendored
2
configure
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue