projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2d25c2
)
Basic: Windows doesn't define S_IFIFO.
author
Daniel Dunbar
<daniel@zuster.org>
Tue, 6 Nov 2012 17:08:24 +0000
(17:08 +0000)
committer
Daniel Dunbar
<daniel@zuster.org>
Tue, 6 Nov 2012 17:08:24 +0000
(17:08 +0000)
llvm-svn: 167468
clang/lib/Basic/FileManager.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Basic/FileManager.cpp
b/clang/lib/Basic/FileManager.cpp
index
6a0fbf8
..
a816969
100644
(file)
--- a/
clang/lib/Basic/FileManager.cpp
+++ b/
clang/lib/Basic/FileManager.cpp
@@
-36,6
+36,9
@@
#include <sys/uio.h>
#else
#include <io.h>
+#ifndef S_ISFIFO
+#define S_ISFIFO(x) (0)
+#endif
#endif
using namespace clang;
@@
-58,7
+61,7
@@
FileEntry::~FileEntry() {
}
bool FileEntry::isNamedPipe() const {
- return
FileMode & S_IFIFO
;
+ return
S_ISFIFO(FileMode)
;
}
//===----------------------------------------------------------------------===//