X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/d52fe63fc81f7e44faaae711812a211a78434976..9bccf70c0258c7cac2dcb80011b2a964d884c552:/bsd/sys/unpcb.h?ds=sidebyside diff --git a/bsd/sys/unpcb.h b/bsd/sys/unpcb.h index bd22c6bee..408cc93d1 100644 --- a/bsd/sys/unpcb.h +++ b/bsd/sys/unpcb.h @@ -57,6 +57,7 @@ #ifndef _SYS_UNPCB_H_ #define _SYS_UNPCB_H_ +#include #include #include @@ -85,6 +86,7 @@ * so that changes in the sockbuf may be computed to modify * back pressure on the sender accordingly. */ +#ifdef __APPLE_API_PRIVATE typedef u_quad_t unp_gen_t; LIST_HEAD(unp_head, unpcb); @@ -103,9 +105,11 @@ struct unpcb { }; #define sotounpcb(so) ((struct unpcb *)((so)->so_pcb)) +#endif /* __APPLE_API_PRIVATE */ /* Hack alert -- this structure depends on . */ #ifdef _SYS_SOCKETVAR_H_ +#ifdef __APPLE_API_UNSTABLE struct xunpcb { size_t xu_len; /* length of this structure */ struct unpcb *xu_unpp; /* to help netstat, fstat */ @@ -130,6 +134,7 @@ struct xunpgen { unp_gen_t xug_gen; so_gen_t xug_sogen; }; +#endif /* __APPLE_API_UNSTABLE */ #endif /* _SYS_SOCKETVAR_H_ */ #endif /* _SYS_UNPCB_H_ */