diff options
author | Peter Hessler <phessler@cvs.openbsd.org> | 2016-09-15 12:34:49 +0000 |
---|---|---|
committer | Peter Hessler <phessler@cvs.openbsd.org> | 2016-09-15 12:34:49 +0000 |
commit | 3f3014b6b9470ff66064508358778dd76c617840 (patch) | |
tree | 8529268d9f1435cff8c7c85306179c132c9fdb1a /sys/net/bfd.h | |
parent | 742b34f342ad9f4f15fb9a28f48dc6da5f8a5707 (diff) |
protect a kernel only structure with _KERNEL, means userland doesn't
need extra includes
Diffstat (limited to 'sys/net/bfd.h')
-rw-r--r-- | sys/net/bfd.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/bfd.h b/sys/net/bfd.h index b3fb79ff60c..fad98af8f33 100644 --- a/sys/net/bfd.h +++ b/sys/net/bfd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bfd.h,v 1.4 2016/09/12 15:24:51 phessler Exp $ */ +/* $OpenBSD: bfd.h,v 1.5 2016/09/15 12:34:48 phessler Exp $ */ /* * Copyright (c) 2016 Peter Hessler <phessler@openbsd.org> @@ -77,6 +77,7 @@ struct bfd_msghdr { uint32_t remotediag; }; +#ifdef _KERNEL struct bfd_softc { TAILQ_ENTRY(bfd_softc) bfd_next; struct socket *sc_so; @@ -98,6 +99,7 @@ struct bfd_softc { int mintx; int multiplier; }; +#endif /* _KERNEL */ struct bfd_flags { int version; |