summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2014-10-21 20:02:00 +0000
committerRui Ueyama <ruiu@google.com>2014-10-21 20:02:00 +0000
commite7bf4299dbae77f7a8bce17b9f2482ac2744ada1 (patch)
tree3ee19c2551a863583f6114afdf37f4b8f9d723b4 /lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp
parentd205602a0b05bd2c28c03117ae5054c34dc8c4f8 (diff)
downloadbcm5719-llvm-e7bf4299dbae77f7a8bce17b9f2482ac2744ada1.tar.gz
bcm5719-llvm-e7bf4299dbae77f7a8bce17b9f2482ac2744ada1.zip
Assume cxxabi.h exists on FreeBSD
HAVE_CXXABI_H is not defined on FreeBSD but the system actually has the header. CMake test fails because the header depends on size_t. llvm-svn: 220315
Diffstat (limited to 'lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp')
-rw-r--r--lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp b/lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp
index 9c0736dfae4..f762aa5e397 100644
--- a/lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp
+++ b/lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp
@@ -27,7 +27,9 @@
#include "llvm/Support/Path.h"
#include <algorithm>
-#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
OpenPOWER on IntegriCloud