diff --git a/lld/MachO/SyntheticSections.cpp b/lld/MachO/SyntheticSections.cpp --- a/lld/MachO/SyntheticSections.cpp +++ b/lld/MachO/SyntheticSections.cpp @@ -27,7 +27,9 @@ #ifdef LLVM_HAVE_LIBXAR #include +extern "C" { #include +} #endif using namespace llvm;