llvm.org GIT mirror llvm / 64afe13
MemoryBuffer: Windows doesn't define S_IFIFO. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167467 91177308-0d34-0410-b5e6-96231b3b80d8 Daniel Dunbar 6 years ago
1 changed file(s) with 4 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
3232 #include
3333 #else
3434 #include
35 #ifndef S_ISFIFO
36 #define S_ISFIFO(x) (0)
37 #endif
3538 #endif
3639 #include
3740 using namespace llvm;
320323
321324 // If this is a named pipe, we can't trust the size. Create the memory
322325 // buffer by copying off the stream.
323 if (FileInfo.st_mode & S_IFIFO) {
326 if (S_ISFIFO(FileInfo.st_mode)) {
324327 return getMemoryBufferForStream(FD, Filename, result);
325328 }
326329