From: Dan Gohman Date: Tue, 19 Feb 2013 22:38:58 +0000 (+0000) Subject: Update a portability kludge to keep it in sync with changes in the code X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2f87fed2479017589051a5a99277e4278f6372e3;p=oota-llvm.git Update a portability kludge to keep it in sync with changes in the code which uses it. This is not ideal, but it ought to at least restore the behavior to what it was before. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175571 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Support/MemoryBuffer.cpp b/lib/Support/MemoryBuffer.cpp index 0d5d4d7954f..691b6f50690 100644 --- a/lib/Support/MemoryBuffer.cpp +++ b/lib/Support/MemoryBuffer.cpp @@ -33,8 +33,13 @@ #include #else #include -#ifndef S_ISFIFO -#define S_ISFIFO(x) (0) +// Simplistic definitinos of these macros to allow files to be read with +// MapInFilePages. +#ifndef S_ISREG +#define S_ISREG(x) (1) +#endif +#ifndef S_ISBLK +#define S_ISBLK(x) (0) #endif #endif #include