mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-01-01 03:40:14 +01:00
Add a define for M_WAITOK if it is not present (removed in 5-current).
This commit is contained in:
parent
204936f4c7
commit
4c404e4642
2 changed files with 8 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue