From 4c404e4642aca310681a20b18a8b97ba4834caa0 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 31 Jan 2003 03:24:28 +0000 Subject: [PATCH] Add a define for M_WAITOK if it is not present (removed in 5-current). --- 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 ff2a6460..730d66f4 100644 --- a/bsd-core/drm_os_freebsd.h +++ b/bsd-core/drm_os_freebsd.h @@ -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); diff --git a/bsd/drm_os_freebsd.h b/bsd/drm_os_freebsd.h index ff2a6460..730d66f4 100644 --- a/bsd/drm_os_freebsd.h +++ b/bsd/drm_os_freebsd.h @@ -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);