diff --git a/src/fccache.c b/src/fccache.c index 7139b08..cefe4e9 100644 --- a/src/fccache.c +++ b/src/fccache.c @@ -30,7 +30,11 @@ #include #include #include -#include + +#ifndef _WIN32 + #include +#endif + #include #if defined(HAVE_MMAP) || defined(__CYGWIN__) # include diff --git a/src/fcwindows.h b/src/fcwindows.h index a0eee67..2e8b9ec 100644 --- a/src/fcwindows.h +++ b/src/fcwindows.h @@ -44,6 +44,14 @@ # define WIN32_EXTRA_LEAN # define STRICT # include + +#if defined(_MSC_VER) +#include +typedef SSIZE_T ssize_t; +#endif + +#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) + #endif #endif /* _FCWINDOWS_H_ */