Must include sys/stat.h before declaring a 'struct stat'
authorBrian Gaeke <gaeke@uiuc.edu>
Tue, 5 Oct 2004 18:46:59 +0000 (18:46 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Tue, 5 Oct 2004 18:46:59 +0000 (18:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16728 91177308-0d34-0410-b5e6-96231b3b80d8

lib/System/Unix/MappedFile.cpp
lib/System/Unix/MappedFile.inc

index 7e03cd15a819a9a6e46d8fad34dd4cdac80b8235..fec2408c195bc3410f165c1334fe7a6654bdd8e7 100644 (file)
@@ -20,6 +20,7 @@
 #include "Unix.h"
 #include <fcntl.h>
 #include <sys/mman.h>
+#include <sys/stat.h>
 
 namespace llvm {
 using namespace sys;
index 7e03cd15a819a9a6e46d8fad34dd4cdac80b8235..fec2408c195bc3410f165c1334fe7a6654bdd8e7 100644 (file)
@@ -20,6 +20,7 @@
 #include "Unix.h"
 #include <fcntl.h>
 #include <sys/mman.h>
+#include <sys/stat.h>
 
 namespace llvm {
 using namespace sys;