diff options
author | Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2023-03-30 14:58:07 +0900 |
---|---|---|
committer | Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2023-03-30 14:58:07 +0900 |
commit | c006d7609703afcfb2162c36d4f745125df45879 (patch) | |
tree | c77209443a7ba191ce6976110d5e03639c72cbf3 /configure.ac | |
parent | 12e5db145b098a62ff11b88eea26f473ea2ecdcf (diff) | |
download | zsh-c006d7609703afcfb2162c36d4f745125df45879.tar.gz zsh-c006d7609703afcfb2162c36d4f745125df45879.tar.xz zsh-c006d7609703afcfb2162c36d4f745125df45879.zip |
51604: %M in TIMEFMT should report in kilobytes
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 9 insertions, 0 deletions
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 <sys/resource.h>]) 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 -------------------------------------------- |