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]))
|
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]))
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user