Merge pull request #1807 from juanjosegarciaripoll/master

Remove configuration check for timegm()
This commit is contained in:
Dirk-Jan C. Binnema
2020-10-06 21:24:35 +03:00
committed by GitHub
2 changed files with 3 additions and 2 deletions

View File

@ -122,7 +122,8 @@ AS_IF([test "x$ac_cv_member_struct_dirent_d_ino" != "xyes"],
AC_CHECK_FUNCS([memset memcpy realpath setlocale strerror getpass setsid])
AC_CHECK_FUNCS([vasprintf strptime])
AC_CHECK_FUNC(timegm,[],AC_MSG_ERROR([missing required function timegm]))
# timegm is no longer used in the source
# AC_CHECK_FUNC(timegm,[],AC_MSG_ERROR([missing required function timegm]))
# require pkg-config >= 0.28 (release in 2013; should be old enough...)
# with that version, we don't need the AC_SUBST stuff after PKG_CHECK.

View File

@ -65,7 +65,7 @@ maybe_rotate_logfile ()
return true;
GStatBuf statbuf;
if (::stat (MuLogPath.c_str(), &statbuf) == -1 ||
if (g_stat(MuLogPath.c_str(), &statbuf) == -1 ||
statbuf.st_size <= MaxLogFileSize)
return true;