diff options
| author | Paul Eggert <eggert@cs.ucla.edu> | 2021-12-06 14:39:22 -0800 |
|---|---|---|
| committer | Paul Eggert <eggert@cs.ucla.edu> | 2021-12-07 14:00:42 -0800 |
| commit | e3d1ff04370b3e090e4cfeb8f6cc4a63590a516f (patch) | |
| tree | 4c955ff80feee4a230ac748264a7acb969152f08 /scripts/git-hooks/commit-msg | |
| parent | cp: clone on macOS (diff) | |
| download | coreutils-e3d1ff04370b3e090e4cfeb8f6cc4a63590a516f.tar.gz coreutils-e3d1ff04370b3e090e4cfeb8f6cc4a63590a516f.zip | |
uname: port to recent macOS
Problem reported by Jakub Sokołowski (bug #52330).
* src/uname.c [__APPLE__]: Don’t include sys/syctl.h,
mach/machine.h, mach-o/arch.h.
(print_element_env): New function. With __APPLE__, it defers to the
env var UNAME_MACHINE (if given) for uname -m, and similarly for -nrsv.
(main): Use it. For -p with __APPLE__, rely on predefined macros
and omit any 64-bit indication, for compatibility with macOS uname.
Diffstat (limited to 'scripts/git-hooks/commit-msg')
0 files changed, 0 insertions, 0 deletions
