@cryptotaxi247 / netdata-1 / commits / 82d9b9dba

fix compilation of apps.plugin under freebsd; fixes #3477

Costa Tsaousis (ktsaou) committed Feb 26, 2018 at 20:51 UTC 82d9b9dba7d2dda4f459954d138019d6a19afd63
1 file changed +4
src/apps_plugin.c
+4
@@ -292,7 +292,9 @@ struct pid_stat {
292 kernel_uint_t status_rssfile;
293 kernel_uint_t status_rssshmem;
294 kernel_uint_t status_vmswap;
295 +#ifndef __FreeBSD__
296 ARL_BASE *status_arl;
297 +#endif
298
299 kernel_uint_t io_logical_bytes_read_raw;
300 kernel_uint_t io_logical_bytes_written_raw;
@@ -696,7 +698,9 @@ static inline void del_pid_entry(pid_t pid) {
698 freez(p->fds_dirname);
699 freez(p->stat_filename);
700 freez(p->status_filename);
701 +#ifndef __FreeBSD__
702 arl_free(p->status_arl);
703 +#endif
704 freez(p->io_filename);
705 freez(p->cmdline_filename);
706 freez(p->cmdline);