diff options
Diffstat (limited to 'shared-core')
-rw-r--r-- | shared-core/drm.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 */ |