From 13cc256e404620c1de0cbcc4e43ce1e2dbbc4898 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sun, 2 Dec 2012 13:20:44 +0000 Subject: Vendor import of clang release_32 branch r168974 (effectively, 3.2 RC2): http://llvm.org/svn/llvm-project/cfe/branches/release_32@168974 --- lib/Basic/FileManager.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/Basic/FileManager.cpp') diff --git a/lib/Basic/FileManager.cpp b/lib/Basic/FileManager.cpp index c6b894c7e2fe..a816969b9144 100644 --- a/lib/Basic/FileManager.cpp +++ b/lib/Basic/FileManager.cpp @@ -36,6 +36,9 @@ #include #else #include +#ifndef S_ISFIFO +#define S_ISFIFO(x) (0) +#endif #endif using namespace clang; @@ -57,6 +60,10 @@ FileEntry::~FileEntry() { if (FD != -1) ::close(FD); } +bool FileEntry::isNamedPipe() const { + return S_ISFIFO(FileMode); +} + //===----------------------------------------------------------------------===// // Windows. //===----------------------------------------------------------------------===// -- cgit v1.2.3