From bceba29c23835ca4b18b25d6bb61bc2d6a7aa1eb Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 24 Jan 2003 00:50:20 +0000 Subject: [PATCH] Fix build on -current: Provide M_WAITOK define. --- bsd-core/drm_os_freebsd.h | 4 ++++ bsd/drm_os_freebsd.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/bsd-core/drm_os_freebsd.h b/bsd-core/drm_os_freebsd.h index 5ddac18b..0f2530aa 100644 --- a/bsd-core/drm_os_freebsd.h +++ b/bsd-core/drm_os_freebsd.h @@ -192,6 +192,10 @@ while (!condition) { \ #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); diff --git a/bsd/drm_os_freebsd.h b/bsd/drm_os_freebsd.h index 5ddac18b..0f2530aa 100644 --- a/bsd/drm_os_freebsd.h +++ b/bsd/drm_os_freebsd.h @@ -192,6 +192,10 @@ while (!condition) { \ #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);