@@ -1261,27 +1261,27 @@ dnl PHP_MISSING_TIME_R_DECL
1261
1261
dnl
1262
1262
AC_DEFUN ( [ PHP_MISSING_TIME_R_DECL] ,[
1263
1263
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] ] ) ] ,[
1265
1265
:
1266
1266
] ,[
1267
1267
AC_DEFINE ( MISSING_LOCALTIME_R_DECL ,1 ,[ Whether localtime_r is declared] )
1268
1268
] )
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] ] ) ] ,[
1270
1270
:
1271
1271
] ,[
1272
1272
AC_DEFINE ( MISSING_GMTIME_R_DECL ,1 ,[ Whether gmtime_r is declared] )
1273
1273
] )
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] ] ) ] ,[
1275
1275
:
1276
1276
] ,[
1277
1277
AC_DEFINE ( MISSING_ASCTIME_R_DECL ,1 ,[ Whether asctime_r is declared] )
1278
1278
] )
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] ] ) ] ,[
1280
1280
:
1281
1281
] ,[
1282
1282
AC_DEFINE ( MISSING_CTIME_R_DECL ,1 ,[ Whether ctime_r is declared] )
1283
1283
] )
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] ] ) ] ,[
1285
1285
:
1286
1286
] ,[
1287
1287
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.
1315
1315
dnl
1316
1316
AC_DEFUN ( [ PHP_MISSING_FCLOSE_DECL] ,[
1317
1317
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] ] ) ] ,[
1319
1319
AC_DEFINE ( MISSING_FCLOSE_DECL ,0 ,[ ] )
1320
1320
AC_MSG_RESULT ( [ ok] )
1321
1321
] ,[
@@ -1643,7 +1643,7 @@ AC_DEFUN([PHP_TEST_BUILD], [
1643
1643
LIBS="$4 $LIBS"
1644
1644
AC_LINK_IFELSE ( [ AC_LANG_SOURCE ( [ [
1645
1645
$5
1646
- char $1 ();
1646
+ char $1 (void );
1647
1647
int main(void) {
1648
1648
$1 ();
1649
1649
return 0;
0 commit comments