aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorPierre Beyssac <pb@FreeBSD.org>2002-04-15 17:45:56 +0000
committerPierre Beyssac <pb@FreeBSD.org>2002-04-15 17:45:56 +0000
commit3bad389496b3ae26c040d93ff863889a7b306ecd (patch)
treeeaae315738313299dec611bde642fbfbbc018cbe /graphics
parenta1040699c010e4daefc8b2b8b990e1ab9635bd5d (diff)
downloadports-3bad389496b3ae26c040d93ff863889a7b306ecd.tar.gz
ports-3bad389496b3ae26c040d93ff863889a7b306ecd.zip
Notes
Diffstat (limited to 'graphics')
-rw-r--r--graphics/drm-kmod/files/patch-current20
1 files changed, 20 insertions, 0 deletions
diff --git a/graphics/drm-kmod/files/patch-current b/graphics/drm-kmod/files/patch-current
new file mode 100644
index 000000000000..e8e811aacc39
--- /dev/null
+++ b/graphics/drm-kmod/files/patch-current
@@ -0,0 +1,20 @@
+--- drm_os_freebsd.h.orig Thu Jan 31 13:44:39 2002
++++ drm_os_freebsd.h Sat Apr 13 14:43:40 2002
+@@ -47,7 +47,7 @@
+
+ #if __FreeBSD_version >= 500000
+ #define DRM_OS_SPINTYPE struct mtx
+-#define DRM_OS_SPININIT(l,name) mtx_init(&l, name, MTX_DEF)
++#define DRM_OS_SPININIT(l,name) mtx_init(&l, name, NULL, MTX_DEF)
+ #define DRM_OS_SPINLOCK(l) mtx_lock(l)
+ #define DRM_OS_SPINUNLOCK(u) mtx_unlock(u);
+ #define DRM_OS_LOCK lockmgr(&dev->dev_lock, LK_EXCLUSIVE, 0, curthread)
+@@ -56,7 +56,7 @@
+ #define DRM_OS_STRUCTPROC struct thread
+ #define DRM_OS_CURRENTPID curthread->td_proc->p_pid
+ #define DRM_OS_IOCTL dev_t kdev, u_long cmd, caddr_t data, int flags, struct thread *p
+-#define DRM_OS_CHECKSUSER suser(p->td_proc)
++#define DRM_OS_CHECKSUSER suser(p)
+ #else
+ #define DRM_OS_CURPROC curproc
+ #define DRM_OS_STRUCTPROC struct proc