+2001-06-13 Pavel Roskin <proski@gnu.org>
+
+ * gnome-fileutils.m4: Always explicitly declare main() with the
+ return type `int'. Don't use exit() since it may be undeclared.
+ Use `return' instead.
+ * gnome-pilot.m4: Likewise.
+ * gperf-check.m4: Likewise.
+ * linger.m4: Likewise.
+
2001-06-01 Peter Williams <peterw@ximian.com>
* autogen.sh: s,Gnome,$PKG_NAME,g
#include <sys/param.h>
#include <sys/types.h>
#include <sys/mount.h>
-main ()
+int main ()
{
struct statfs fsd;
fsd.f_fsize = 0;
-exit (statfs (".", &fsd, sizeof (struct statfs)));
+return (statfs (".", &fsd, sizeof (struct statfs)));
}],
fu_cv_sys_stat_statfs3_osf1=yes,
fu_cv_sys_stat_statfs3_osf1=no,
#ifdef HAVE_SYS_VFS_H
#include <sys/vfs.h>
#endif
-main ()
+int main ()
{
struct statfs fsd;
fsd.f_bsize = 0;
-exit (statfs (".", &fsd));
+return (statfs (".", &fsd));
}],
fu_cv_sys_stat_statfs2_bsize=yes,
fu_cv_sys_stat_statfs2_bsize=no,
AC_CACHE_VAL(fu_cv_sys_stat_statfs4,
[AC_TRY_RUN([#include <sys/types.h>
#include <sys/statfs.h>
-main ()
+int main ()
{
struct statfs fsd;
-exit (statfs (".", &fsd, sizeof fsd, 0));
+return (statfs (".", &fsd, sizeof fsd, 0));
}],
fu_cv_sys_stat_statfs4=yes,
fu_cv_sys_stat_statfs4=no,
#ifdef HAVE_SYS_MOUNT_H
#include <sys/mount.h>
#endif
-main ()
+int main ()
{
struct statfs fsd;
fsd.f_fsize = 0;
-exit (statfs (".", &fsd));
+return (statfs (".", &fsd));
}],
fu_cv_sys_stat_statfs2_fsize=yes,
fu_cv_sys_stat_statfs2_fsize=no,
#ifdef HAVE_SYS_FS_TYPES_H
#include <sys/fs_types.h>
#endif
-main ()
+int main ()
{
struct fs_data fsd;
/* Ultrix's statfs returns 1 for success,
0 for not mounted, -1 for failure. */
-exit (statfs (".", &fsd) != 1);
+return (statfs (".", &fsd) != 1);
}],
fu_cv_sys_stat_fs_data=yes,
fu_cv_sys_stat_fs_data=no,