summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-03-06 12:07:13 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-03-06 12:07:13 +0100
commit08f48819f7d31b612aa1f4caba52fa59514e3c43 (patch)
treeb1c46f72d60e6241de8ff096244a9966e6b95fe9
parent6bc51908292afc0f852cdf64f85908956978baa8 (diff)
downloadrtems-libbsd-08f48819f7d31b612aa1f4caba52fa59514e3c43.tar.bz2
NETSTAT(1): Disable unused functions
-rw-r--r--freebsd/usr.bin/netstat/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/freebsd/usr.bin/netstat/main.c b/freebsd/usr.bin/netstat/main.c
index 1628036e..53b4d9bc 100644
--- a/freebsd/usr.bin/netstat/main.c
+++ b/freebsd/usr.bin/netstat/main.c
@@ -803,6 +803,7 @@ kresolve_list(struct nlist *_nl)
return (0);
}
+#ifndef __rtems__
/*
* Wrapper of kvm_dpcpu_setcpu().
*/
@@ -818,6 +819,7 @@ kset_dpcpu(u_int cpuid)
cpuid, kvm_geterr(kvmd));
return;
}
+#endif /* __rtems__ */
/*
* Read kernel memory, return 0 on success.
@@ -838,6 +840,7 @@ kread(u_long addr, void *buf, size_t size)
return (0);
}
+#ifndef __rtems__
/*
* Read single counter(9).
*/
@@ -850,6 +853,7 @@ kread_counter(u_long addr)
return (kvm_counter_u64_fetch(kvmd, addr));
}
+#endif /* __rtems__ */
/*
* Read an array of N counters in kernel memory into array of N uint64_t's.