  set (CMAKE_CONFIGURATION_TYPES Release Debug RelWithDebInfo CACHE INTERNAL "" FORCE)
 diff -Naur occt-7.1.0-orig/src/Geom/Geom_Ellipse.cxx occt-7.1.0/src/Geom/Geom_Ellipse.cxx
 --- occt-7.1.0-orig/src/Geom/Geom_Ellipse.cxx	2016-11-25 11:50:18.000000000 +0100
-+++ occt-7.1.0/src/Geom/Geom_Ellipse.cxx	2017-01-23 22:03:42.136216200 +0100
++++ occt-7.1.0/src/Geom/Geom_Ellipse.cxx	2017-01-23 23:41:06.566520999 +0100
 @@ -31,7 +31,6 @@
  
  IMPLEMENT_STANDARD_RTTIEXT(Geom_Ellipse,Geom_Conic)

+endif()
diff -Naur occt-7.1.0-orig/adm/cmake/occt_toolkit.cmake occt-7.1.0/adm/cmake/occt_toolkit.cmake
--- occt-7.1.0-orig/adm/cmake/occt_toolkit.cmake	2016-11-25 11:50:18.000000000 +0100
+++ occt-7.1.0/adm/cmake/occt_toolkit.cmake	2017-01-23 21:26:45.162354700 +0100
@@ -256,4 +256,6 @@
 
 if (BUILD_SHARED_LIBS)

   if ( ! myInfinite )
     return myMin + ( myMax - myMin ) * ( val - myFirst ) / ( myLast - myFirst );
 //  Standard_Real x = log ( ( val - myFirst ) / ( myLast - val ) ); // exponent
diff -Naur occt-7.1.0-orig/src/OSD/OSD_signal.cxx occt-7.1.0/src/OSD/OSD_signal.cxx
--- occt-7.1.0-orig/src/OSD/OSD_signal.cxx	2016-11-25 11:50:18.000000000 +0100
+++ occt-7.1.0/src/OSD/OSD_signal.cxx	2017-01-24 00:14:21.899689000 +0100
@@ -616,7 +616,8 @@
 #include <pthread.h>
 
 #ifdef __linux__
-#include <fenv.h>
+#include  <cfenv>
+//#include  <fenv.h>
 static Standard_Boolean fFltExceptions = Standard_False;
 #endif
 
@@ -800,7 +801,7 @@
     (*ADR_ACT_SIGIO_HANDLER)() ;
 #ifdef __linux__
   if (fFltExceptions)
-    feenableexcept (FE_INVALID | FE_DIVBYZERO | FE_OVERFLOW);
+     feenableexcept (FE_INVALID | FE_DIVBYZERO | FE_OVERFLOW);
     //feenableexcept (FE_INVALID | FE_DIVBYZERO);
 #endif
   sigset_t set;
diff -Naur occt-7.1.0-orig/src/Standard/Standard_OutOfMemory.cxx occt-7.1.0/src/Standard/Standard_OutOfMemory.cxx
--- occt-7.1.0-orig/src/Standard/Standard_OutOfMemory.cxx	2016-11-25 11:50:18.000000000 +0100
+++ occt-7.1.0/src/Standard/Standard_OutOfMemory.cxx	2017-01-23 23:41:06.570523000 +0100
@@ -15,6 +15,10 @@
 
 #include <Standard_OutOfMemory.hxx>
