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:
Žilvinas Valinskas 2014-04-30 23:11:48 +03:00 committed by Thomas Graf
parent be69e1c337
commit c62eb9de44
3 changed files with 11 additions and 2 deletions

View File

@ -69,8 +69,12 @@ fi
PKG_CHECK_MODULES([CONFUSE], [libconfuse], [], AC_MSG_ERROR([requires libconfuse])) PKG_CHECK_MODULES([CONFUSE], [libconfuse], [], AC_MSG_ERROR([requires libconfuse]))
PKG_CHECK_MODULES([LIBNL], [libnl-3.0], [], AC_MSG_ERROR([requires libnl3-dev])) case ${target_os} in
PKG_CHECK_MODULES([LIBNL_ROUTE], [libnl-route-3.0], [], AC_MSG_ERROR([requires libnl3-route])) 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])) AC_CHECK_LIB(m, pow, [], AC_MSG_ERROR([requires libm]))

View File

@ -31,6 +31,8 @@
#include <bmon/input.h> #include <bmon/input.h>
#include <bmon/utils.h> #include <bmon/utils.h>
#ifndef SYS_BSD
static int c_notc = 0; static int c_notc = 0;
static struct element_group *grp; static struct element_group *grp;
static struct bmon_module netlink_ops; static struct bmon_module netlink_ops;
@ -866,3 +868,4 @@ static void __init netlink_init(void)
{ {
input_register(&netlink_ops); input_register(&netlink_ops);
} }
#endif

View File

@ -44,8 +44,10 @@ static void activate_default(void)
if (!input_subsys.s_nmod) { if (!input_subsys.s_nmod) {
struct bmon_module *m; struct bmon_module *m;
#ifdef SYS_LINUX
if (!input_set("netlink")) if (!input_set("netlink"))
return; return;
#endif
if (!input_set("proc")) if (!input_set("proc"))
return; return;