aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Support')
-rw-r--r--lib/Support/Errno.cpp4
-rw-r--r--lib/Support/Unix/Path.inc8
-rw-r--r--lib/Support/Unix/Unix.h10
3 files changed, 4 insertions, 18 deletions
diff --git a/lib/Support/Errno.cpp b/lib/Support/Errno.cpp
index 730220f..ed17f60 100644
--- a/lib/Support/Errno.cpp
+++ b/lib/Support/Errno.cpp
@@ -14,8 +14,6 @@
#include "llvm/Support/Errno.h"
#include "llvm/Config/config.h" // Get autoconf configuration settings
#include "llvm/Support/raw_ostream.h"
-
-#if HAVE_STRING_H
#include <string.h>
#if HAVE_ERRNO_H
@@ -75,5 +73,3 @@ std::string StrError(int errnum) {
} // namespace sys
} // namespace llvm
-
-#endif // HAVE_STRING_H
diff --git a/lib/Support/Unix/Path.inc b/lib/Support/Unix/Path.inc
index ccd60e5..5386366 100644
--- a/lib/Support/Unix/Path.inc
+++ b/lib/Support/Unix/Path.inc
@@ -18,6 +18,8 @@
#include "Unix.h"
#include "llvm/Support/Process.h"
+#include <limits.h>
+#include <stdio.h>
#if HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif
@@ -43,12 +45,6 @@
# include <ndir.h>
# endif
#endif
-#if HAVE_STDIO_H
-#include <stdio.h>
-#endif
-#if HAVE_LIMITS_H
-#include <limits.h>
-#endif
#ifdef __APPLE__
#include <mach-o/dyld.h>
diff --git a/lib/Support/Unix/Unix.h b/lib/Support/Unix/Unix.h
index 051f56f..dd11c04 100644
--- a/lib/Support/Unix/Unix.h
+++ b/lib/Support/Unix/Unix.h
@@ -22,28 +22,22 @@
#include "llvm/Config/config.h" // Get autoconf configuration settings
#include "llvm/Support/Errno.h"
#include <algorithm>
+#include <assert.h>
#include <cerrno>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <string>
+#include <sys/types.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
-#ifdef HAVE_SYS_TYPES_H
-#include <sys/types.h>
-#endif
-
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
-#ifdef HAVE_ASSERT_H
-#include <assert.h>
-#endif
-
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif