eliminate nested include by making MALLOC_DECLARE conditional on the

inclusion of <sys/malloc.h>

Submitted by:	bde
This commit is contained in:
sam 2004-04-05 22:10:26 +00:00
parent 2588e5ad7a
commit 95fbaa6dad
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>