From 304c4d0aa421d5e978dfd4551c16c546410d650d Mon Sep 17 00:00:00 2001 From: Jan ONDREJ (SAL) Date: Jun 17 2015 06:58:25 +0000 Subject: Added patch. --- diff --git a/bandwidthd-gcc5.patch b/bandwidthd-gcc5.patch new file mode 100644 index 0000000..5a5379e --- /dev/null +++ b/bandwidthd-gcc5.patch @@ -0,0 +1,48 @@ +diff -ur bandwidthd-2.0.1/bandwidthd.c bandwidthd-2.0.1.sal/bandwidthd.c +--- bandwidthd-2.0.1/bandwidthd.c 2015-06-17 08:32:09.107759233 +0200 ++++ bandwidthd-2.0.1.sal/bandwidthd.c 2015-06-17 08:32:28.097495172 +0200 +@@ -1255,7 +1255,7 @@ + + size_t ICGrandTotalDataPoints = 0; + +-char inline *HostIp2CharIp(unsigned long ipaddr, char *buffer) ++__attribute__ ((gnu_inline)) char inline *HostIp2CharIp(unsigned long ipaddr, char *buffer) + { + struct in_addr in_addr; + char *s; +diff -ur bandwidthd-2.0.1/bandwidthd.c.dest bandwidthd-2.0.1.sal/bandwidthd.c.dest +--- bandwidthd-2.0.1/bandwidthd.c.dest 2005-01-11 22:27:26.000000000 +0100 ++++ bandwidthd-2.0.1.sal/bandwidthd.c.dest 2015-06-17 08:52:20.346954108 +0200 +@@ -1242,7 +1242,7 @@ + + size_t ICGrandTotalDataPoints = 0; + +-char inline *HostIp2CharIp(unsigned long ipaddr, char *buffer) ++__attribute__ ((gnu_inline)) char inline *HostIp2CharIp(unsigned long ipaddr, char *buffer) + { + struct in_addr in_addr; + char *s; +diff -ur bandwidthd-2.0.1/bandwidthd.c.nodevs bandwidthd-2.0.1.sal/bandwidthd.c.nodevs +--- bandwidthd-2.0.1/bandwidthd.c.nodevs 2015-06-17 08:32:09.105759261 +0200 ++++ bandwidthd-2.0.1.sal/bandwidthd.c.nodevs 2015-06-17 08:52:30.107817845 +0200 +@@ -1250,7 +1250,7 @@ + + size_t ICGrandTotalDataPoints = 0; + +-char inline *HostIp2CharIp(unsigned long ipaddr, char *buffer) ++__attribute__ ((gnu_inline)) char inline *HostIp2CharIp(unsigned long ipaddr, char *buffer) + { + struct in_addr in_addr; + char *s; +diff -ur bandwidthd-2.0.1/bandwidthd.h bandwidthd-2.0.1.sal/bandwidthd.h +--- bandwidthd-2.0.1/bandwidthd.h 2015-06-17 08:32:09.105759261 +0200 ++++ bandwidthd-2.0.1.sal/bandwidthd.h 2015-06-17 08:52:00.842226393 +0200 +@@ -194,7 +194,7 @@ + void RecoverDataFromCDF(void); + + // ************ This function converts and IP to a char string +-char inline *HostIp2CharIp(unsigned long ipaddr, char *buffer); ++__attribute__ ((gnu_inline)) char inline *HostIp2CharIp(unsigned long ipaddr, char *buffer); + + // ************ This function converts the numbers for each quad into an IP + inline uint32_t IpAddr(unsigned char q1, unsigned char q2, unsigned char q3, unsigned char q4);