@@ -1210,27 +1210,27 @@ dnl PHP_MISSING_TIME_R_DECL
12101210dnl
12111211AC_DEFUN ( [ PHP_MISSING_TIME_R_DECL] ,[
12121212 AC_MSG_CHECKING ( [ for missing declarations of reentrant functions] )
1213- AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <time.h>] ] , [ [ struct tm *(*func)() = localtime_r] ] ) ] ,[
1213+ AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <time.h>] ] , [ [ struct tm *(*func)(void ) = localtime_r] ] ) ] ,[
12141214 :
12151215 ] ,[
12161216 AC_DEFINE ( MISSING_LOCALTIME_R_DECL ,1 ,[ Whether localtime_r is declared] )
12171217 ] )
1218- AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <time.h>] ] , [ [ struct tm *(*func)() = gmtime_r] ] ) ] ,[
1218+ AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <time.h>] ] , [ [ struct tm *(*func)(void ) = gmtime_r] ] ) ] ,[
12191219 :
12201220 ] ,[
12211221 AC_DEFINE ( MISSING_GMTIME_R_DECL ,1 ,[ Whether gmtime_r is declared] )
12221222 ] )
1223- AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <time.h>] ] , [ [ char *(*func)() = asctime_r] ] ) ] ,[
1223+ AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <time.h>] ] , [ [ char *(*func)(void ) = asctime_r] ] ) ] ,[
12241224 :
12251225 ] ,[
12261226 AC_DEFINE ( MISSING_ASCTIME_R_DECL ,1 ,[ Whether asctime_r is declared] )
12271227 ] )
1228- AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <time.h>] ] , [ [ char *(*func)() = ctime_r] ] ) ] ,[
1228+ AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <time.h>] ] , [ [ char *(*func)(void ) = ctime_r] ] ) ] ,[
12291229 :
12301230 ] ,[
12311231 AC_DEFINE ( MISSING_CTIME_R_DECL ,1 ,[ Whether ctime_r is declared] )
12321232 ] )
1233- AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <string.h>] ] , [ [ char *(*func)() = strtok_r] ] ) ] ,[
1233+ AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <string.h>] ] , [ [ char *(*func)(void ) = strtok_r] ] ) ] ,[
12341234 :
12351235 ] ,[
12361236 AC_DEFINE ( MISSING_STRTOK_R_DECL ,1 ,[ Whether strtok_r is declared] )
@@ -1518,7 +1518,7 @@ AC_DEFUN([PHP_TEST_BUILD], [
15181518 LIBS="$4 $LIBS"
15191519 AC_LINK_IFELSE ( [ AC_LANG_SOURCE ( [ [
15201520 $5
1521- char $1 ();
1521+ char $1 (void );
15221522 int main(void) {
15231523 $1 ();
15241524 return 0;
0 commit comments