summaryrefslogtreecommitdiff
path: root/bsd/drm_vm.h
diff options
context:
space:
mode:
Diffstat (limited to 'bsd/drm_vm.h')
-rw-r--r--bsd/drm_vm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bsd/drm_vm.h b/bsd/drm_vm.h
index e4ae8c7e..6f0c01ea 100644
--- a/bsd/drm_vm.h
+++ b/bsd/drm_vm.h
@@ -65,7 +65,7 @@ paddr_t DRM(mmap)(dev_t kdev, off_t offset, int prot)
drm_map_list_entry_t *listentry = NULL;
drm_file_t *priv;
- DRM_GET_PRIV_WITH_RETURN(priv, (DRMFILE)DRM_CURRENTPID);
+ DRM_GET_PRIV_WITH_RETURN(priv, (DRMFILE)(uintptr_t)DRM_CURRENTPID);
if (!priv->authenticated)
return DRM_ERR(EACCES);