@@ -1261,27 +1261,27 @@ dnl PHP_MISSING_TIME_R_DECL
12611261dnl
12621262AC_DEFUN ( [ PHP_MISSING_TIME_R_DECL] ,[
12631263 AC_MSG_CHECKING ( [ for missing declarations of reentrant functions] )
1264- AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <time.h>] ] , [ [ struct tm *(*func)() = localtime_r] ] ) ] ,[
1264+ AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <time.h>] ] , [ [ struct tm *(*func)(void ) = localtime_r] ] ) ] ,[
12651265 :
12661266 ] ,[
12671267 AC_DEFINE ( MISSING_LOCALTIME_R_DECL ,1 ,[ Whether localtime_r is declared] )
12681268 ] )
1269- AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <time.h>] ] , [ [ struct tm *(*func)() = gmtime_r] ] ) ] ,[
1269+ AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <time.h>] ] , [ [ struct tm *(*func)(void ) = gmtime_r] ] ) ] ,[
12701270 :
12711271 ] ,[
12721272 AC_DEFINE ( MISSING_GMTIME_R_DECL ,1 ,[ Whether gmtime_r is declared] )
12731273 ] )
1274- AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <time.h>] ] , [ [ char *(*func)() = asctime_r] ] ) ] ,[
1274+ AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <time.h>] ] , [ [ char *(*func)(void ) = asctime_r] ] ) ] ,[
12751275 :
12761276 ] ,[
12771277 AC_DEFINE ( MISSING_ASCTIME_R_DECL ,1 ,[ Whether asctime_r is declared] )
12781278 ] )
1279- AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <time.h>] ] , [ [ char *(*func)() = ctime_r] ] ) ] ,[
1279+ AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <time.h>] ] , [ [ char *(*func)(void ) = ctime_r] ] ) ] ,[
12801280 :
12811281 ] ,[
12821282 AC_DEFINE ( MISSING_CTIME_R_DECL ,1 ,[ Whether ctime_r is declared] )
12831283 ] )
1284- AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <string.h>] ] , [ [ char *(*func)() = strtok_r] ] ) ] ,[
1284+ AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <string.h>] ] , [ [ char *(*func)(void ) = strtok_r] ] ) ] ,[
12851285 :
12861286 ] ,[
12871287 AC_DEFINE ( MISSING_STRTOK_R_DECL ,1 ,[ Whether strtok_r is declared] )
@@ -1315,7 +1315,7 @@ dnl See if we have broken header files like SunOS has.
13151315dnl
13161316AC_DEFUN ( [ PHP_MISSING_FCLOSE_DECL] ,[
13171317 AC_MSG_CHECKING ( [ for fclose declaration] )
1318- AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <stdio.h>] ] , [ [ int (*func)() = fclose] ] ) ] ,[
1318+ AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [ #include <stdio.h>] ] , [ [ int (*func)(void ) = fclose] ] ) ] ,[
13191319 AC_DEFINE ( MISSING_FCLOSE_DECL ,0 ,[ ] )
13201320 AC_MSG_RESULT ( [ ok] )
13211321 ] ,[
@@ -1643,7 +1643,7 @@ AC_DEFUN([PHP_TEST_BUILD], [
16431643 LIBS="$4 $LIBS"
16441644 AC_LINK_IFELSE ( [ AC_LANG_SOURCE ( [ [
16451645 $5
1646- char $1 ();
1646+ char $1 (void );
16471647 int main(void) {
16481648 $1 ();
16491649 return 0;
0 commit comments