From: Eric Anholt Date: Fri, 24 Jan 2003 00:49:15 +0000 (+0000) Subject: Fix build on -current: Provide M_WAITOK define. X-Git-Tag: submit/1.0/20121108.012404~2431 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=66f57c403c012f55126817bc21d40346d29d2d35;p=profile%2Fivi%2Flibdrm.git Fix build on -current: Provide M_WAITOK define. --- diff --git a/bsd-core/drm_os_freebsd.h b/bsd-core/drm_os_freebsd.h index ff2a646..1a3feb6 100644 --- a/bsd-core/drm_os_freebsd.h +++ b/bsd-core/drm_os_freebsd.h @@ -188,6 +188,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 */ diff --git a/bsd/drm_os_freebsd.h b/bsd/drm_os_freebsd.h index ff2a646..1a3feb6 100644 --- a/bsd/drm_os_freebsd.h +++ b/bsd/drm_os_freebsd.h @@ -188,6 +188,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 */