From d0929caa2184f131a44fc07ffde347a4ce96a8f2 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Fri, 17 Nov 2017 21:40:38 +0000 Subject: [PATCH] Don't use llvm/Config/config.h. It is private to llvm. Instead use llvm/Config/llvm-config.h and check LLVM_ON_UNIX. That is the same guard that clang uses before including unistd.h. llvm-svn: 318558 --- lld/ELF/Filesystem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lld/ELF/Filesystem.cpp b/lld/ELF/Filesystem.cpp index a7c25c9..8d0b5d8 100644 --- a/lld/ELF/Filesystem.cpp +++ b/lld/ELF/Filesystem.cpp @@ -14,10 +14,10 @@ #include "Filesystem.h" #include "Config.h" #include "lld/Common/Threads.h" -#include "llvm/Config/config.h" +#include "llvm/Config/llvm-config.h" #include "llvm/Support/FileOutputBuffer.h" #include "llvm/Support/FileSystem.h" -#if defined(HAVE_UNISTD_H) +#if LLVM_ON_UNIX #include #endif #include -- 2.7.4