diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2004-04-02 21:26:04 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-04-02 21:26:04 +0000 |
commit | 8507ecb36d8b755671861d0b3550c66a322d3f04 (patch) | |
tree | d349419d4a17f3d892fee48ad56eb3b60429f6c1 /lib/Support/SystemUtils.cpp | |
parent | 02cef96a2855b1b01b81d4b3429ed5cd707dd899 (diff) |
Add autoconf support for isStandardOutAConsole ().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12638 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/SystemUtils.cpp')
-rw-r--r-- | lib/Support/SystemUtils.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Support/SystemUtils.cpp b/lib/Support/SystemUtils.cpp index 07811d891c..dafbf98da8 100644 --- a/lib/Support/SystemUtils.cpp +++ b/lib/Support/SystemUtils.cpp @@ -18,6 +18,7 @@ #include "Config/fcntl.h" #include "Config/sys/wait.h" #include "Config/unistd.h" +#include "Config/config.h" #include <algorithm> #include <fstream> #include <iostream> @@ -47,8 +48,11 @@ bool llvm::isExecutableFile(const std::string &ExeFileName) { /// isStandardOutAConsole - Return true if we can tell that the standard output /// stream goes to a terminal window or console. bool llvm::isStandardOutAConsole() { - // FIXME: if we don't have isatty, just return false. +#if HAVE_ISATTY return isatty(1); +#endif + // If we don't have isatty, just return false. + return false; } |