Fix build in FreeBSD/DragonflyBSD
This commit is contained in:
parent
5677863e61
commit
969cebd4ae
@ -175,7 +175,7 @@ case ${target_os} in
|
|||||||
AC_DEFINE_UNQUOTED(SYS_SUNOS, "1", [operating system])
|
AC_DEFINE_UNQUOTED(SYS_SUNOS, "1", [operating system])
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*bsd*)
|
*bsd*|dragonfly*)
|
||||||
AC_DEFINE_UNQUOTED(SYS_BSD, "1", [operating system])
|
AC_DEFINE_UNQUOTED(SYS_BSD, "1", [operating system])
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
@ -232,7 +232,7 @@ sysctl_read(void)
|
|||||||
snprintf(info_buf, sizeof(info_buf), "%ju", (uintmax_t)ifm->ifm_data.ifi_metric);
|
snprintf(info_buf, sizeof(info_buf), "%ju", (uintmax_t)ifm->ifm_data.ifi_metric);
|
||||||
element_update_info(e, "Metric", info_buf);
|
element_update_info(e, "Metric", info_buf);
|
||||||
|
|
||||||
#ifndef __NetBSD__
|
#if !(defined(__NetBSD__) || defined(__FreeBSD__))
|
||||||
snprintf(info_buf, sizeof(info_buf), "%u", ifm->ifm_data.ifi_recvquota);
|
snprintf(info_buf, sizeof(info_buf), "%u", ifm->ifm_data.ifi_recvquota);
|
||||||
element_update_info(e, "RX-Quota", info_buf);
|
element_update_info(e, "RX-Quota", info_buf);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user