Author: glebius
Date: Wed Mar 12 11:09:17 2014
New Revision: 263088
URL: http://svnweb.freebsd.org/changeset/base/263088

Log:
  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.

Modified:
  stable/10/sys/sys/counter.h
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/sys/counter.h
==============================================================================
--- stable/10/sys/sys/counter.h Wed Mar 12 10:59:51 2014        (r263087)
+++ stable/10/sys/sys/counter.h Wed Mar 12 11:09:17 2014        (r263088)
@@ -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__ */
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to