From b334bff4347e8344c8e9f09c6d47dbd88fa69971 Mon Sep 17 00:00:00 2001 From: David Cantrell Date: Thu, 9 Jun 2022 19:13:01 +0100 Subject: [PATCH] change the default comparison method on Mac OS to suppress a warning that's going to fall back to memcmp --- misc-utils/hardlink.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/misc-utils/hardlink.c b/misc-utils/hardlink.c index f77ee92628..b7eb342340 100644 --- a/misc-utils/hardlink.c +++ b/misc-utils/hardlink.c @@ -186,7 +186,11 @@ static struct options { size_t cache_size; } opts = { /* default setting */ +#ifdef __APPLE__ + .method = "memcmp", +#else .method = "sha256", +#endif .respect_mode = TRUE, .respect_owner = TRUE, .respect_time = TRUE, -- 2.47.2