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
This commit is contained in:
Dan Gohman 2013-02-19 22:38:58 +00:00
parent 5cdeca8b1d
commit 2f87fed247

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>