From b47c0108b3053e36599aec5b3313ea89608ae90a Mon Sep 17 00:00:00 2001 From: Andrew Kaylor Date: Wed, 2 Oct 2013 19:26:16 +0000 Subject: [PATCH] Fix build problems with remote lli implementation git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191848 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/lli/ChildTarget/Unix/ChildTarget.inc | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/tools/lli/ChildTarget/Unix/ChildTarget.inc b/tools/lli/ChildTarget/Unix/ChildTarget.inc index 9550e508d62..cd42f34edd5 100644 --- a/tools/lli/ChildTarget/Unix/ChildTarget.inc +++ b/tools/lli/ChildTarget/Unix/ChildTarget.inc @@ -15,7 +15,28 @@ #include #include #include + +#ifdef HAVE_SYS_MMAN_H #include +#endif + +#ifdef __APPLE__ +#include +#endif + +#if defined(__mips__) +# if defined(__OpenBSD__) +# include +# else +# include +# endif +#endif + +#ifdef __APPLE__ +extern "C" void sys_icache_invalidate(const void *Addr, size_t len); +#else +extern "C" void __clear_cache(void *, void*); +#endif namespace { -- 2.34.1