treewide: fix #include errors after gcc-5.4
They were mostly missing <cmath> or <math.h>.
This commit is contained in:
@@ -27,6 +27,11 @@ stdenv.mkDerivation rec {
|
||||
] ++ qtInputs;
|
||||
|
||||
patches = [ ./0001-fix-gcc-cmath-namespace-issues.patch ];
|
||||
postPatch = ''
|
||||
sed '1i#include <cmath>' -i src/Vehicle/Vehicle.cc \
|
||||
-i src/comm/{QGCFlightGearLink,QGCJSBSimLink}.cc \
|
||||
-i src/{uas/UAS,ui/QGCDataPlot2D}.cc
|
||||
'';
|
||||
|
||||
preConfigure = ''
|
||||
mkdir build
|
||||
|
||||
Reference in New Issue
Block a user