libbb: fix "error: redefinition of 'is_tty_secure'"
authorDenys Vlasenko <vda.linux@googlemail.com>
Thu, 13 Apr 2017 15:55:05 +0000 (17:55 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 13 Apr 2017 15:55:05 +0000 (17:55 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libbb/securetty.c

index 67a12368977f938f28082851a4ff6b63b9416bb0..21354e2fa2fa99d2f516f88d80c4e0c95dc0817f 100644 (file)
@@ -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