diff options
author | Alex Samorukov <samm@os2.kiev.ua> | 2021-01-04 01:36:05 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2021-01-04 13:28:28 +0100 |
commit | 09aba8bac466ce8fb94a6b5ee587d81415ff4c44 (patch) | |
tree | 61effed714a2c345e7be05f85489bedad9a71e67 /libbb | |
parent | 92d84c40140c2681421ad005f971b8e5e6a96915 (diff) | |
download | busybox-09aba8bac466ce8fb94a6b5ee587d81415ff4c44.tar.gz |
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 <samm@os2.kiev.ua>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/pw_encrypt.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 <crypt.h> +# if !defined(__FreeBSD__) +# include <crypt.h> +# endif #endif #include "libbb.h" |