Silence macOS vfork deprecation warnings
authorMattias Engdegård <mattiase@acm.org>
Thu, 10 Feb 2022 21:59:26 +0000 (22:59 +0100)
committerMattias Engdegård <mattiase@acm.org>
Thu, 10 Feb 2022 22:06:17 +0000 (23:06 +0100)
commit26eeca71fbb3ee76ad51d3b83b79992f165e5f06
tree46a8ec47a90a24412892c793918cb188af18ea61
parent437382734a53e8fb311938d5dd8a39508e60b9bf
Silence macOS vfork deprecation warnings

The vfork system call exists and works in macOS 11.6 but the compiler
gives a deprecation message; silence it, because the performance is
still better than that of plain fork.  See discussion at
https://lists.gnu.org/archive/html/emacs-devel/2022-02/msg00260.html

* src/conf_post.h (VFORK): New #define.
* src/callproc.c (emacs_spawn):
* src/sysdep.c (sys_subshell): Use it.
src/callproc.c
src/conf_post.h
src/sysdep.c