libbb: include <crypt.h> only if necessary
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 16 Jul 2019 13:09:06 +0000 (15:09 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 16 Jul 2019 13:09:06 +0000 (15:09 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libbb/pw_encrypt.c

index 86455cd0df7b14dc2d19065f7a4d03901e485917..47c20690fae2b3e3e879a0a5dca5e80c6ae5a2e7 100644 (file)
@@ -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 =