Make it possible to override LOGIN_FAIL_DELAY in CONFIG_EXTRA_CFLAGS
authorPeter Kümmel <syntheticpp@gmx.net>
Mon, 22 Dec 2014 00:55:54 +0000 (01:55 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 22 Dec 2014 00:55:54 +0000 (01:55 +0100)
Signed-off-by: Peter Kümmel <syntheticpp@gmx.net>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
include/libbb.h

index 8e8b9ca0e99667f6c8c9aae3356a5f951efd4473..68a7cf002fdd964f38b58182641d3479564ce3ac 100644 (file)
@@ -1271,7 +1271,9 @@ char *bb_simplify_path(const char *path) FAST_FUNC;
 /* Returns ptr to NUL */
 char *bb_simplify_abs_path_inplace(char *path) FAST_FUNC;
 
+#ifndef LOGIN_FAIL_DELAY
 #define LOGIN_FAIL_DELAY 3
+#endif
 extern void bb_do_delay(int seconds) FAST_FUNC;
 extern void change_identity(const struct passwd *pw) FAST_FUNC;
 extern void run_shell(const char *shell, int loginshell, const char *command, const char **additional_args) NORETURN FAST_FUNC;