]> arthur.barton.de Git - netdata.git/commitdiff
Fix compilation error on FreeBSD 10.3
authorVladimir Kobal <vlad@prokk.net>
Thu, 23 Mar 2017 16:29:26 +0000 (18:29 +0200)
committerVladimir Kobal <vlad@prokk.net>
Thu, 23 Mar 2017 16:29:26 +0000 (18:29 +0200)
src/freebsd_sysctl.c

index 965c1cbbfd50523b324b6f8267bfa44848fe0d7d..77e731033222118f81f09e3905401b7034aad563 100644 (file)
@@ -3298,7 +3298,11 @@ int do_getifaddrs(int update_every, usec_t dt) {
                 // --------------------------------------------------------------------
 
                 if (ifm->do_drops == CONFIG_BOOLEAN_YES || (ifm->do_drops == CONFIG_BOOLEAN_AUTO &&
-                        (IFA_DATA(iqdrops) || IFA_DATA(oqdrops)))) {
+                        (IFA_DATA(iqdrops)
+#if __FreeBSD__ >= 11
+                         || IFA_DATA(oqdrops)
+#endif
+                        ))) {
                     if (unlikely(!ifm->st_drops)) {
                         ifm->st_drops = rrdset_create_localhost("net_drops",
                                                                 ifa->ifa_name,