summaryrefslogtreecommitdiffstats
path: root/freebsd/usr.bin/netstat/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd/usr.bin/netstat/main.c')
-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.