From 09aba8bac466ce8fb94a6b5ee587d81415ff4c44 Mon Sep 17 00:00:00 2001 From: Alex Samorukov Date: Mon, 4 Jan 2021 01:36:05 +0100 Subject: Fix missing "crypt.h" compilation error on the FreeBSD FreeBSD does not use crypt.h, but unistd.h which is already included Signed-off-by: Alex Samorukov Signed-off-by: Denys Vlasenko --- libbb/pw_encrypt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libbb/pw_encrypt.c b/libbb/pw_encrypt.c index a60c33c35..3463fd95b 100644 --- a/libbb/pw_encrypt.c +++ b/libbb/pw_encrypt.c @@ -7,7 +7,9 @@ * Licensed under GPLv2 or later, see file LICENSE in this source tree. */ #if !ENABLE_USE_BB_CRYPT -#include +# if !defined(__FreeBSD__) +# include +# endif #endif #include "libbb.h" -- cgit v1.2.3