[git commit] libbb: include <crypt.h> only if necessary

Denys Vlasenko vda.linux at googlemail.com
Tue Jul 16 13:09:06 UTC 2019


commit: https://git.busybox.net/busybox/commit/?id=4767a5375e6681a962efadb19cb457fd4b9ea278
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 libbb/pw_encrypt.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libbb/pw_encrypt.c b/libbb/pw_encrypt.c
index 86455cd0d..47c20690f 100644
--- a/libbb/pw_encrypt.c
+++ b/libbb/pw_encrypt.c
@@ -6,7 +6,9 @@
  *
  * Licensed under GPLv2 or later, see file LICENSE in this source tree.
  */
+#if !ENABLE_USE_BB_CRYPT
 #include <crypt.h>
+#endif
 #include "libbb.h"
 
 /* static const uint8_t ascii64[] ALIGN1 =


More information about the busybox-cvs mailing list