From dc71cb5f6eddf689df2d3f4823907a95daa3eb5e Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Thu, 28 Nov 2013 13:52:54 +0600 Subject: Fix Carve compilation on FreeBSD Based on the patch from Marcus von Appen, thanks! --- extern/carve/patches/clang_is_heap_fix.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 extern/carve/patches/clang_is_heap_fix.patch (limited to 'extern/carve/patches/clang_is_heap_fix.patch') diff --git a/extern/carve/patches/clang_is_heap_fix.patch b/extern/carve/patches/clang_is_heap_fix.patch new file mode 100644 index 00000000000..435e408d6cd --- /dev/null +++ b/extern/carve/patches/clang_is_heap_fix.patch @@ -0,0 +1,17 @@ +diff -r 2e6e59022e6e lib/triangulator.cpp +--- a/lib/triangulator.cpp Fri Nov 09 09:35:35 2012 +1100 ++++ b/lib/triangulator.cpp Thu Nov 28 13:34:52 2013 +0600 +@@ -27,6 +27,13 @@ + + #include + ++// Support for latest Clang/LLVM on FreeBSD which does have different libcxx. ++// ++// TODO(sergey): Move it some some more generic header with platform-specific ++// declarations. ++#ifdef _LIBCPP_VERSION ++# define __is_heap is_heap ++#endif + + namespace { + // private code related to hole patching. -- cgit v1.2.3