aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-04-13 17:55:05 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2017-04-13 17:55:05 +0200
commit44c0ab410278656b4b82ec20a24c3644a254da89 (patch)
tree3300333474b5aea3377b40925dcd6ea7675ddc51 /libbb
parent107159ef1cf222759622abd267e158a85ea7d855 (diff)
downloadbusybox-44c0ab410278656b4b82ec20a24c3644a254da89.tar.gz
libbb: fix "error: redefinition of 'is_tty_secure'"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb')
-rw-r--r--libbb/securetty.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libbb/securetty.c b/libbb/securetty.c
index 67a123689..21354e2fa 100644
--- a/libbb/securetty.c
+++ b/libbb/securetty.c
@@ -6,6 +6,7 @@
*/
#include "libbb.h"
+#if ENABLE_FEATURE_SECURETTY && !ENABLE_PAM
int FAST_FUNC is_tty_secure(const char *short_tty)
{
char *buf = (char*)"/etc/securetty"; /* any non-NULL is ok */
@@ -22,3 +23,4 @@ int FAST_FUNC is_tty_secure(const char *short_tty)
*/
return buf != NULL;
}
+#endif