[git commit] Fix missing "crypt.h" compilation error on the FreeBSD
Denys Vlasenko
vda.linux at googlemail.com
Mon Jan 4 12:28:28 UTC 2021
commit: https://git.busybox.net/busybox/commit/?id=09aba8bac466ce8fb94a6b5ee587d81415ff4c44
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master
FreeBSD does not use crypt.h, but unistd.h which is already included
Signed-off-by: Alex Samorukov <samm at os2.kiev.ua>
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
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 <crypt.h>
+# if !defined(__FreeBSD__)
+# include <crypt.h>
+# endif
#endif
#include "libbb.h"
More information about the busybox-cvs
mailing list