X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/e5568f75972dfc723778653c11cb6b4dc825716a..378393581903b274cb7a4d18e0d978071a6b592d:/bsd/netat/appletalk.h diff --git a/bsd/netat/appletalk.h b/bsd/netat/appletalk.h index 7fbc4e38e..615164c37 100644 --- a/bsd/netat/appletalk.h +++ b/bsd/netat/appletalk.h @@ -39,6 +39,8 @@ #include #include +#ifdef __APPLE_API_OBSOLETE + /* Non-aligned types are used in packet headers. */ @@ -281,19 +283,18 @@ typedef struct at_state { #define AT_ST_ZT_CHANGED 0x0800 /* zone table changed (for SNMP) */ #define AT_ST_NBP_CHANGED 0x1000 /* if nbp table changed (for SNMP)*/ -#ifdef KERNEL -#ifdef __APPLE_API_PRIVATE +#ifdef KERNEL_PRIVATE extern at_state_t at_state; /* global state of AT network */ #define ROUTING_MODE (at_state.flags & AT_ST_ROUTER) #define MULTIHOME_MODE (at_state.flags & AT_ST_MULTIHOME) #define MULTIPORT_MODE (ROUTING_MODE || MULTIHOME_MODE) -#endif /* __APPLE_API_PRIVATE */ -#endif /* KERNEL */ +#endif /* KERNEL_PRIVATE */ /* defines originally from h/at_elap.h */ #define AT_ADDR 0 #define ET_ADDR 1 #define AT_ADDR_NO_LOOP 2 /* disables packets from looping back */ +#endif /* __APPLE_API_OBSOLETE */ #endif /* _NETAT_APPLETALK_H_ */