diff --git a/src/logging.cc b/src/logging.cc index 81d966fe5..f1f519a43 100644 --- a/src/logging.cc +++ b/src/logging.cc @@ -31,6 +31,7 @@ #include "utilities.h" +#include #include #include #include @@ -180,6 +181,10 @@ GLOG_DEFINE_string(log_backtrace_at, "", #define PATH_SEPARATOR '/' #ifndef HAVE_PREAD +#if defined(OS_WINDOWS) +#include +#define ssize_t SSIZE_T +#endif static ssize_t pread(int fd, void* buf, size_t count, off_t offset) { off_t orig_offset = lseek(fd, 0, SEEK_CUR); if (orig_offset == (off_t)-1)