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 | |
parent | 92d84c40140c2681421ad005f971b8e5e6a96915 (diff) | |
download | busybox-w32-09aba8bac466ce8fb94a6b5ee587d81415ff4c44.tar.gz busybox-w32-09aba8bac466ce8fb94a6b5ee587d81415ff4c44.tar.bz2 busybox-w32-09aba8bac466ce8fb94a6b5ee587d81415ff4c44.zip |
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>
-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 @@ | |||
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | #if !ENABLE_USE_BB_CRYPT | 9 | #if !ENABLE_USE_BB_CRYPT |
10 | #include <crypt.h> | 10 | # if !defined(__FreeBSD__) |
11 | # include <crypt.h> | ||
12 | # endif | ||
11 | #endif | 13 | #endif |
12 | #include "libbb.h" | 14 | #include "libbb.h" |
13 | 15 | ||