summaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorDenys Vlasenko2019-07-16 15:09:06 +0200
committerDenys Vlasenko2019-07-16 15:09:06 +0200
commit4767a5375e6681a962efadb19cb457fd4b9ea278 (patch)
tree14b71f946724bbbb0b903c77c6303c9984dcbba4 /libbb
parentb6946084296525f0e2aa3e72df7b896cc98197d7 (diff)
downloadbusybox-4767a5375e6681a962efadb19cb457fd4b9ea278.zip
busybox-4767a5375e6681a962efadb19cb457fd4b9ea278.tar.gz
libbb: include <crypt.h> only if necessary
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb')
-rw-r--r--libbb/pw_encrypt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libbb/pw_encrypt.c b/libbb/pw_encrypt.c
index 86455cd..47c2069 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 =