summaryrefslogtreecommitdiff
path: root/shell/cttyhack.c
diff options
context:
space:
mode:
authorDenys Vlasenko2010-07-30 17:41:35 +0200
committerDenys Vlasenko2010-07-30 17:41:35 +0200
commit17662801ece60bbcc45bbc3cb1fc0fc3070d0d23 (patch)
treee6e179d3a407d9d3abb20bf423e8e34f33d41dbd /shell/cttyhack.c
parent430ba79c39eeed4725c36e9c2ad61c438c8a5d3e (diff)
downloadbusybox-17662801ece60bbcc45bbc3cb1fc0fc3070d0d23.zip
busybox-17662801ece60bbcc45bbc3cb1fc0fc3070d0d23.tar.gz
cttyhack: make it survive WERROR build
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/cttyhack.c')
-rw-r--r--shell/cttyhack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/cttyhack.c b/shell/cttyhack.c
index 3a78bae..7a5e1ff 100644
--- a/shell/cttyhack.c
+++ b/shell/cttyhack.c
@@ -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