eliminate nested include by making MALLOC_DECLARE conditional on the

inclusion of <sys/malloc.h>

Submitted by:	bde
This commit is contained in:
Sam Leffler 2004-04-05 22:10:26 +00:00
parent d7fe3b4f52
commit 3055cc14c4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=127916
2 changed files with 2 additions and 1 deletions

View File

@ -128,7 +128,9 @@ ieee80211_unref_node(struct ieee80211_node **ni)
struct ieee80211com;
#ifdef MALLOC_DECLARE
MALLOC_DECLARE(M_80211_NODE);
#endif
extern void ieee80211_node_attach(struct ifnet *);
extern void ieee80211_node_lateattach(struct ifnet *);

View File

@ -37,7 +37,6 @@
/*
* Definitions for IEEE 802.11 drivers.
*/
#include <sys/malloc.h>
#include <net80211/ieee80211.h>
#include <net80211/ieee80211_crypto.h>