@cryptotaxi247 / netdata-1 / commits / 4201f21ec

Fix compilation error on FreeBSD 10.3

Vladimir Kobal committed Mar 23, 2017 at 18:29 UTC 4201f21ec70829bd167cdb345b8ee79b1227d4d7
1 file changed +5 -1
src/freebsd_sysctl.c
+5 -1
@@ -3298,7 +3298,11 @@ int do_getifaddrs(int update_every, usec_t dt) {
3298 // --------------------------------------------------------------------
3299
3300 if (ifm->do_drops == CONFIG_BOOLEAN_YES || (ifm->do_drops == CONFIG_BOOLEAN_AUTO &&
3301 - (IFA_DATA(iqdrops) || IFA_DATA(oqdrops)))) {
3301 + (IFA_DATA(iqdrops)
3302 +#if __FreeBSD__ >= 11
3303 + || IFA_DATA(oqdrops)
3304 +#endif
3305 + ))) {
3306 if (unlikely(!ifm->st_drops)) {
3307 ifm->st_drops = rrdset_create_localhost("net_drops",
3308 ifa->ifa_name,