All of our supported operating systems (so far) and FreeBSD technically
want you to include <sys/stat.h> for fstat(), struct stat, and friends.

llvm-svn: 8887
diff --git a/llvm/lib/Bytecode/Reader/ReaderWrappers.cpp b/llvm/lib/Bytecode/Reader/ReaderWrappers.cpp
index 68f2101..99c0e6b 100644
--- a/llvm/lib/Bytecode/Reader/ReaderWrappers.cpp
+++ b/llvm/lib/Bytecode/Reader/ReaderWrappers.cpp
@@ -8,6 +8,7 @@
 #include "ReaderInternals.h"
 #include "Support/StringExtras.h"
 #include "Config/fcntl.h"
+#include <sys/stat.h>
 #include "Config/unistd.h"
 #include "Config/sys/mman.h"