1 Use <cmath> instead of <math.h> to fix gcc 6.x build
3 This patch fixes the following build issue:
5 ../lib/math.h:2577:1: error: ‘int signbit(float)’ conflicts with a previous declaration
7 that occurs with gcc 6.x.
10 https://raw.githubusercontent.com/openembedded/meta-openembedded/master/meta-networking/recipes-connectivity/lftp/files/fix-gcc-6-conflicts-signbit.patch
12 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 --- lftp-4.6.3a/src/NetAccess.cc.orig 2016-06-18 10:25:51.063358981 -0400
15 +++ lftp-4.6.3a/src/NetAccess.cc 2016-06-18 10:26:04.143359209 -0400
22 #include <sys/types.h>
24 #include "NetAccess.h"
25 --- lftp-4.6.3a/src/Speedometer.cc.orig 2016-06-18 10:24:58.895358073 -0400
26 +++ lftp-4.6.3a/src/Speedometer.cc 2016-06-18 10:25:10.879358281 -0400
34 #include "Speedometer.h"
36 --- lftp-4.6.3a/src/FileCopy.cc.orig 2016-06-18 10:24:15.939357325 -0400
37 +++ lftp-4.6.3a/src/FileCopy.cc 2016-06-18 10:24:24.583357475 -0400
39 #include <sys/types.h>
47 --- lftp-4.6.3a/src/ResMgr.cc.orig 2016-06-18 10:23:31.387356549 -0400
48 +++ lftp-4.6.3a/src/ResMgr.cc 2016-06-18 10:23:41.771356729 -0400
55 #include <sys/types.h>