summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2014-03-12 11:09:17 +0000
committerglebius <glebius@FreeBSD.org>2014-03-12 11:09:17 +0000
commitf105bc7d5b6439062686227d671e67987ac22bd9 (patch)
tree2e2dd8a4b3eec060e789d645b3605e0580ca099a
parentf937dcf2bd0584087acec5d8dc92dd5dba177113 (diff)
downloadFreeBSD-src-f105bc7d5b6439062686227d671e67987ac22bd9.zip
FreeBSD-src-f105bc7d5b6439062686227d671e67987ac22bd9.tar.gz
Merge r256514:
- While we are spreading the counter(9) across network stack, more userland tools would need to know about the counter_u64_t type. Allow to include sys/counter.h from userspace.
-rw-r--r--sys/sys/counter.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/counter.h b/sys/sys/counter.h
index ec5cbfe..2ce7134 100644
--- a/sys/sys/counter.h
+++ b/sys/sys/counter.h
@@ -31,6 +31,7 @@
typedef uint64_t *counter_u64_t;
+#ifdef _KERNEL
#include <machine/counter.h>
counter_u64_t counter_u64_alloc(int);
@@ -58,4 +59,5 @@ uint64_t counter_u64_fetch(counter_u64_t);
for (int i = 0; i < (n); i++) \
counter_u64_zero((a)[i]); \
} while (0)
+#endif /* _KERNEL */
#endif /* ! __SYS_COUNTER_H__ */
OpenPOWER on IntegriCloud