@@ -976,7 +976,7 @@ AC_CHECK_FUNCS(sem_init)
976976if test "$ac_cv_func_sem_init" = "yes"; then
977977AC_MSG_CHECKING ( for working sem_init ( ))
978978AC_RUN_IFELSE ( [ AC_LANG_SOURCE ( [ [ #include <semaphore.h>
979- main () {
979+ int main () {
980980 sem_t s;
981981 return sem_init(&s,0,0);
982982 }
@@ -1009,7 +1009,7 @@ AC_SYS_LARGEFILE
10091009if test "$ac_cv_sys_file_offset_bits" = "no"; then
10101010 AC_MSG_CHECKING ( for native large file support )
10111011 AC_RUN_IFELSE ( [ AC_LANG_SOURCE ( [ [ #include <unistd.h>
1012- main () {
1012+ int main () {
10131013 return !(sizeof(off_t) == 8);
10141014 }] ] ) ] ,[ ac_cv_sys_file_offset_bits=64; AC_DEFINE ( _FILE_OFFSET_BITS ,64 )
10151015 AC_MSG_RESULT ( yes ) ] ,[ AC_MSG_RESULT ( no ) ] ,[ ] )
@@ -1047,7 +1047,7 @@ dnl EKU: try to determine the alignment of long and double
10471047dnl replaces FB_ALIGNMENT and FB_DOUBLE_ALIGN in src/jrd/common.h
10481048AC_MSG_CHECKING ( alignment of long )
10491049AC_RUN_IFELSE ( [ AC_LANG_SOURCE ( [ [ #include <semaphore.h>
1050- main () {
1050+ int main () {
10511051 struct s {
10521052 char a;
10531053 union { long long x; sem_t y; } b;
@@ -1058,7 +1058,7 @@ AC_MSG_RESULT($ac_cv_c_alignment)
10581058AC_DEFINE_UNQUOTED ( FB_ALIGNMENT , $ac_cv_c_alignment , [ Alignment of long] )
10591059
10601060AC_MSG_CHECKING ( alignment of double )
1061- AC_RUN_IFELSE ( [ AC_LANG_SOURCE ( [ [ main () {
1061+ AC_RUN_IFELSE ( [ AC_LANG_SOURCE ( [ [ int main () {
10621062 struct s {
10631063 char a;
10641064 double b;
0 commit comments