FreeBSD does not use crypt.h, but unistd.h which is already included

Signed-off-by: Alex Samorukov <[email protected]>
---
 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

_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to