From 20cee5687244d7be2b93f78baa757953127f6c0f Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 10 Nov 2025 22:02:49 +0000 Subject: [PATCH] compat: Fix sha256 on Dragonfly at least --- compat/crypt/sha256.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/compat/crypt/sha256.c b/compat/crypt/sha256.c index 73c43c03..ccc00a4b 100644 --- a/compat/crypt/sha256.c +++ b/compat/crypt/sha256.c @@ -24,8 +24,12 @@ * SUCH DAMAGE. */ -#include +/* For BSD */ +#if (defined(__unix__) || defined(unix)) && !defined(USG) +#include +#endif +#include #include #ifdef __GLIBC__