[PATCH] scripts/entitlement.sh: Use backward-compatible cp flags

2021-11-30 Thread Evan Miller
Older versions of Mac OS X do not support cp -a. The cp man page indicates that -a is equivalent to -pPR. Signed-off-by: Evan Miller --- scripts/entitlement.sh.orig +++ scripts/entitlement.sh @@ -15,7 +15,7 @@ if $in_place; then trap 'rm "$DST.tmp"' exit - cp -af &qu

[PATCH] block/file-posix.c: Fix compilation on macOS SDKs <10.12.4

2021-11-29 Thread Evan Miller
fpunchhole_t was introduced in the macOS 10.12.4 SDK. For reference, see: https://developer.apple.com/documentation/kernel/fpunchhole_t Test the SDK version before attempting any fpunchhole_t-related logic. Signed-off-by: Evan Miller --- block/file-posix.c.orig +++ block/file-posix.c