]> git.eshelyaron.com Git - emacs.git/commit
Fix builds on older versions of macOS
authorMattias Engdegård <mattiase@acm.org>
Sat, 16 Apr 2022 09:33:14 +0000 (11:33 +0200)
committerMattias Engdegård <mattiase@acm.org>
Sat, 16 Apr 2022 10:25:39 +0000 (12:25 +0200)
commit6815db492ff899e77b45be98414567ad96a8177c
tree852f5b3757e956988ad129c8e4bbe1adede18136
parent16ccca6dc38aefb8c000560f8cf4cdc5f46b0727
Fix builds on older versions of macOS

This adds back macOS-specific code replaced earlier (bug#48548),
specifically to fix build errors on macOS 10.7.5.  See discussion at
https://lists.gnu.org/archive/html/emacs-devel/2022-04/msg00779.html .

* src/sysdep.c (HAVE_RUSAGE_INFO_CURRENT, HAVE_PROC_PIDINFO): New.
(system_process_attributes): Use alternative code or exclude features
when building on older macOS versions.

(cherry picked from commit 855e15dbf10a6aac42b860fdb28711f979e2bf22)
src/sysdep.c