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
#include <unistd.h>
#else
#include <io.h>
-#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 <fcntl.h>