cttyhack: make it survive WERROR build
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 30 Jul 2010 15:41:35 +0000 (17:41 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 30 Jul 2010 15:41:35 +0000 (17:41 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/cttyhack.c

index 3a78bae29fde072c8d1ed3d1bab6f2a696e9f0b8..7a5e1ffd2125c2ea8d5b75005136140ba1f58b91 100644 (file)
@@ -58,7 +58,7 @@
 //usage:     "\nStarting interactive shell from boot shell script:"
 //usage:     "\n       setsid cttyhack sh"
 
-#if !defined(__linux__) && !defined(TIOCGSERIAL)
+#if !defined(__linux__) && !defined(TIOCGSERIAL) && !ENABLE_WERROR
 # warning cttyhack will not be able to detect a controlling tty on this system
 #endif