File blender-2.78-C++11-build-fix.patch of Package blender
Index: source/blender/render/intern/raytrace/rayobject_rtbuild.cpp
===================================================================
--- source/blender/render/intern/raytrace/rayobject_rtbuild.cpp.orig 2017-02-22 17:11:13.000000000 +0200
+++ source/blender/render/intern/raytrace/rayobject_rtbuild.cpp 2017-06-12 09:29:36.178303530 +0200
@@ -33,6 +33,7 @@
#include <assert.h>
#include <stdlib.h>
#include <algorithm>
+#include <cmath>
#if __cplusplus >= 201103L
#include <cmath>
Index: intern/openvdb/CMakeLists.txt
===================================================================
--- intern/openvdb/CMakeLists.txt.orig 2017-02-13 16:08:03.000000000 +0200
+++ intern/openvdb/CMakeLists.txt 2017-06-12 10:53:57.729889967 +0200
@@ -38,6 +38,7 @@ set(SRC
if(WITH_OPENVDB)
add_definitions(
-DWITH_OPENVDB
+ -std=c++11
)
list(APPEND INC_SYS