--- lftp-4.7.7.orig/src/ResMgr.cc	2017-02-07 17:57:49.000000000 +0100
+++ lftp-4.7.7/src/ResMgr.cc	2017-06-05 21:24:11.348321502 +0200
@@ -23,7 +23,7 @@
 #include <ctype.h>
 #include <unistd.h>
 #include <stdlib.h>
-#include <math.h>
+#include <cmath>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <errno.h>