From 4cdd819d03c3ed7c7065dbc0621470992cabf774 Mon Sep 17 00:00:00 2001 From: Juan Jose Garcia-Ripoll Date: Fri, 2 Oct 2020 09:33:15 +0200 Subject: [PATCH 1/2] Remove configuration check for timegm() timegm() is no longer used in the mu source base. --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index af03863f..a0f4c132 100644 --- a/configure.ac +++ b/configure.ac @@ -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. From c885df06a1242a8b39d136a8669c8f1e015c74b6 Mon Sep 17 00:00:00 2001 From: Juan Jose Garcia-Ripoll Date: Fri, 2 Oct 2020 09:51:33 +0200 Subject: [PATCH 2/2] Use g_stat() instead of stat() with GStatBuf --- lib/utils/mu-logger.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/mu-logger.cc b/lib/utils/mu-logger.cc index d9b6decc..75175277 100644 --- a/lib/utils/mu-logger.cc +++ b/lib/utils/mu-logger.cc @@ -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;