aboutsummaryrefslogtreecommitdiffstats
path: root/lib/System/Unix/Process.inc
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2009-09-06 10:53:22 +0000
committerDuncan Sands <baldrick@free.fr>2009-09-06 10:53:22 +0000
commit3872b7ec9730d0492e40ab8c279dd8d397d71d42 (patch)
tree5162422a9c3a3699644b9f34b51fb80fa07b18d5 /lib/System/Unix/Process.inc
parenta118e65f108d5222f359ff32d24a27bdcaf27eb1 (diff)
downloadexternal_llvm-3872b7ec9730d0492e40ab8c279dd8d397d71d42.zip
external_llvm-3872b7ec9730d0492e40ab8c279dd8d397d71d42.tar.gz
external_llvm-3872b7ec9730d0492e40ab8c279dd8d397d71d42.tar.bz2
Tweak code into an equivalent form for which icc
doesn't warn about unreachable instructions. Patch by Erick Tryzelaar (#111). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81110 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Unix/Process.inc')
-rw-r--r--lib/System/Unix/Process.inc9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/System/Unix/Process.inc b/lib/System/Unix/Process.inc
index c4ce35a..774783f 100644
--- a/lib/System/Unix/Process.inc
+++ b/lib/System/Unix/Process.inc
@@ -181,25 +181,28 @@ void Process::PreventCoreFiles() {
bool Process::StandardInIsUserInput() {
#if HAVE_ISATTY
return isatty(0);
-#endif
+#else
// If we don't have isatty, just return false.
return false;
+#endif
}
bool Process::StandardOutIsDisplayed() {
#if HAVE_ISATTY
return isatty(1);
-#endif
+#else
// If we don't have isatty, just return false.
return false;
+#endif
}
bool Process::StandardErrIsDisplayed() {
#if HAVE_ISATTY
return isatty(2);
-#endif
+#else
// If we don't have isatty, just return false.
return false;
+#endif
}
static unsigned getColumns(int FileID) {