From c006d7609703afcfb2162c36d4f745125df45879 Mon Sep 17 00:00:00 2001 From: Jun-ichi Takimoto Date: Thu, 30 Mar 2023 14:58:07 +0900 Subject: 51604: %M in TIMEFMT should report in kilobytes --- configure.ac | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index f340d2993..e6ced85d9 100644 --- a/configure.ac +++ b/configure.ac @@ -1965,6 +1965,15 @@ if test x$ac_cv_func_getrusage = xyes; then #endif #include ]) fi +dnl On some OSes (only macOS?) ru_maxrss is in bytes (not in kilobytes). +dnl Solaris uses pages as the unit, but ru_maxrss is set to zero anyway. +AH_TEMPLATE(RU_MAXRSS_IS_IN_BYTES, +[Define to 1 if ru_maxrss in struct rusage is in bytes.]) +case "$host_os" in + darwin*) + AC_DEFINE(RU_MAXRSS_IS_IN_BYTES) + ;; +esac dnl -------------------------------------------- -- cgit 1.4.1