From 279e7c113ced4f2f4dcc14801aa3084698a417bd Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Wed, 17 Aug 2005 00:14:18 +0000 Subject: commit toggle switch to make Linux drm_handle_t unsigned int --- shared-core/drm.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'shared-core') diff --git a/shared-core/drm.h b/shared-core/drm.h index ffbd4755..37c9af4f 100644 --- a/shared-core/drm.h +++ b/shared-core/drm.h @@ -133,7 +133,11 @@ #define _DRM_LOCK_IS_CONT(lock) ((lock) & _DRM_LOCK_CONT) #define _DRM_LOCKING_CONTEXT(lock) ((lock) & ~(_DRM_LOCK_HELD|_DRM_LOCK_CONT)) +#if defined(__linux__) +typedef unsigned int drm_handle_t; +#else typedef unsigned long drm_handle_t; /**< To mapped regions */ +#endif typedef unsigned int drm_context_t; /**< GLXContext handle */ typedef unsigned int drm_drawable_t; typedef unsigned int drm_magic_t; /**< Magic for authentication */ -- cgit v1.2.3