Package: bmon Version: 1:3.8-2 Followup-For: Bug #826836 Hi,
In upstream code for BSD-ish systems, support was added for some Apple Darwin features that are not available on other platforms. Please find a patch attached for this. I've run-time tested it on kfreebsd-amd64 and it works beautifully, I wish I'd known about this tool a long time ago! Thanks. -- System Information: Debian Release: stretch/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: kfreebsd-amd64 (x86_64) Kernel: kFreeBSD 10.1-0-amd64 Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init)
Date: Fri, 10 Jun 2016 01:36:33 +0100 From: Steven Chamberlain <ste...@pyro.eu.org> Subject: guard Darwin-specific features with #ifdef Fix building on FreeBSD-based systems, by guarding Darwin-specific features with an #ifdef --- a/src/in_sysctl.c +++ b/src/in_sysctl.c @@ -232,11 +232,13 @@ snprintf(info_buf, sizeof(info_buf), "%u", ifm->ifm_data.ifi_metric); element_update_info(e, "Metric", info_buf); +#ifdef __APPLE__ snprintf(info_buf, sizeof(info_buf), "%u", ifm->ifm_data.ifi_recvquota); element_update_info(e, "RX-Quota", info_buf); snprintf(info_buf, sizeof(info_buf), "%u", ifm->ifm_data.ifi_xmitquota); element_update_info(e, "TX-Quota", info_buf); +#endif element_notify_update(e, NULL); element_lifesign(e, 1);