osx: bmon v3.2 compiles and links
Signed-off-by: Žilvinas Valinskas <zilvinas.valinskas@gmail.com> Signed-off-by: Thomas Graf <tgraf@suug.ch>
This commit is contained in:
parent
be69e1c337
commit
c62eb9de44
@ -69,8 +69,12 @@ fi
|
||||
|
||||
PKG_CHECK_MODULES([CONFUSE], [libconfuse], [], AC_MSG_ERROR([requires libconfuse]))
|
||||
|
||||
case ${target_os} in
|
||||
linux*)
|
||||
PKG_CHECK_MODULES([LIBNL], [libnl-3.0], [], AC_MSG_ERROR([requires libnl3-dev]))
|
||||
PKG_CHECK_MODULES([LIBNL_ROUTE], [libnl-route-3.0], [], AC_MSG_ERROR([requires libnl3-route]))
|
||||
;;
|
||||
esac
|
||||
|
||||
AC_CHECK_LIB(m, pow, [], AC_MSG_ERROR([requires libm]))
|
||||
|
||||
|
@ -31,6 +31,8 @@
|
||||
#include <bmon/input.h>
|
||||
#include <bmon/utils.h>
|
||||
|
||||
#ifndef SYS_BSD
|
||||
|
||||
static int c_notc = 0;
|
||||
static struct element_group *grp;
|
||||
static struct bmon_module netlink_ops;
|
||||
@ -866,3 +868,4 @@ static void __init netlink_init(void)
|
||||
{
|
||||
input_register(&netlink_ops);
|
||||
}
|
||||
#endif
|
||||
|
@ -44,8 +44,10 @@ static void activate_default(void)
|
||||
if (!input_subsys.s_nmod) {
|
||||
struct bmon_module *m;
|
||||
|
||||
#ifdef SYS_LINUX
|
||||
if (!input_set("netlink"))
|
||||
return;
|
||||
#endif
|
||||
|
||||
if (!input_set("proc"))
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user