treewide: fix #include errors after gcc-5.4

They were mostly missing <cmath> or <math.h>.
This commit is contained in:
Vladimír Čunát
2016-06-19 10:18:30 +02:00
parent d133a168f0
commit 97c484a10f
20 changed files with 63 additions and 6 deletions
@@ -17,6 +17,7 @@ stdenv.mkDerivation rec {
buildInputs = [ qt4 qmake4Hook zlib ];
postPatch = ''
sed '1i#include <cmath>' -i common/camera.cpp
substituteInPlace common/camera.cpp --replace "isnan(" "std::isnan("
export qmakeFlags="$qmakeFlags INSTALL_PREFIX=$out"
'';