diff options
Diffstat (limited to 'lld/lib/ReaderWriter/ELF/ELFLinkingContext.cpp')
| -rw-r--r-- | lld/lib/ReaderWriter/ELF/ELFLinkingContext.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lld/lib/ReaderWriter/ELF/ELFLinkingContext.cpp b/lld/lib/ReaderWriter/ELF/ELFLinkingContext.cpp index 9dba86a9b8e..f542ac9f783 100644 --- a/lld/lib/ReaderWriter/ELF/ELFLinkingContext.cpp +++ b/lld/lib/ReaderWriter/ELF/ELFLinkingContext.cpp @@ -22,7 +22,9 @@ #include "llvm/Support/FileSystem.h" #include "llvm/Support/Path.h" -#if HAVE_CXXABI_H +// FreeBSD 10.0 has cxxabi.h but fails to define HAVE_CXXABI_H due to +// header dependency issues. +#if defined(HAVE_CXXABI_H) || defined (__FreeBSD__) #include <cxxabi.h> #endif |

