summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-10-05 00:56:46 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-10-05 00:56:46 +0000
commitf348ccca8031dd5344da0a2d6c5e290a4809bc00 (patch)
treec9ddc3c52dd60e83d3fb2c820ed6b1ddfb0fa45e /lib
parentc5a0bbfbeb47225f50abec5547a64da97691a354 (diff)
downloadllvm-f348ccca8031dd5344da0a2d6c5e290a4809bc00.tar.gz
llvm-f348ccca8031dd5344da0a2d6c5e290a4809bc00.tar.bz2
llvm-f348ccca8031dd5344da0a2d6c5e290a4809bc00.tar.xz
Adjust sys/stat.h inclusion so its only for SunOS.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16686 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/System/SunOS/MappedFile.cpp1
-rw-r--r--lib/System/Unix/Unix.h1
2 files changed, 1 insertions, 1 deletions
diff --git a/lib/System/SunOS/MappedFile.cpp b/lib/System/SunOS/MappedFile.cpp
index ebde62afc1..a90f7eacb8 100644
--- a/lib/System/SunOS/MappedFile.cpp
+++ b/lib/System/SunOS/MappedFile.cpp
@@ -13,6 +13,7 @@
//===----------------------------------------------------------------------===//
// Include the generic unix implementation
+#include <sys/stat.h>
#include "../Unix/MappedFile.cpp"
// vim: sw=2 smartindent smarttab tw=80 autoindent expandtab
diff --git a/lib/System/Unix/Unix.h b/lib/System/Unix/Unix.h
index 37bc53c28a..b9eff46c46 100644
--- a/lib/System/Unix/Unix.h
+++ b/lib/System/Unix/Unix.h
@@ -23,7 +23,6 @@
#include <cstring>
#include <cerrno>
#include <sys/types.h>
-#include <sys/stat.h>
#include <sys/param.h>
#include <assert.h>
#include <string>