[PATCH] Fix missing "crypt.h" compilation error on the FreeBSD
Alex Samorukov
samm at os2.kiev.ua
Mon Jan 4 00:36:05 UTC 2021
FreeBSD does not use crypt.h, but unistd.h which is already included
Signed-off-by: Alex Samorukov <samm at os2.kiev.ua>
---
libbb/pw_encrypt.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libbb/pw_encrypt.c b/libbb/pw_encrypt.c
index a60c33c35..c8119653e 100644
--- a/libbb/pw_encrypt.c
+++ b/libbb/pw_encrypt.c
@@ -7,8 +7,10 @@
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
#if !ENABLE_USE_BB_CRYPT
+#ifndef __FreeBSD__
#include <crypt.h>
#endif
+#endif
#include "libbb.h"
/* static const uint8_t ascii64[] ALIGN1 =
--
2.29.1
More information about the busybox
mailing list