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.

llvm-svn: 175571
This commit is contained in:
Dan Gohman 2013-02-19 22:38:58 +00:00
parent ecca606341
commit 5e3791bfa0

View File

@ -33,8 +33,13 @@
#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>