Add a define for M_WAITOK if it is not present (removed in 5-current).

This commit is contained in:
Eric Anholt 2003-01-31 03:24:28 +00:00
parent 204936f4c7
commit 4c404e4642
2 changed files with 8 additions and 0 deletions

View file

@ -189,6 +189,10 @@ do { \
#define PAGE_ALIGN(addr) round_page(addr)
#ifndef M_WAITOK /* M_WAITOK (=0) name removed in -current */
#define M_WAITOK 0
#endif
#define malloctype DRM(M_DRM)
/* The macros confliced in the MALLOC_DEFINE */
MALLOC_DECLARE(malloctype);

View file

@ -189,6 +189,10 @@ do { \
#define PAGE_ALIGN(addr) round_page(addr)
#ifndef M_WAITOK /* M_WAITOK (=0) name removed in -current */
#define M_WAITOK 0
#endif
#define malloctype DRM(M_DRM)
/* The macros confliced in the MALLOC_DEFINE */
MALLOC_DECLARE(malloctype);