diff options
author | pb <pb@FreeBSD.org> | 2002-04-16 01:45:56 +0800 |
---|---|---|
committer | pb <pb@FreeBSD.org> | 2002-04-16 01:45:56 +0800 |
commit | 40beaa138f10eaf2ba7320c4267b53b61e196adb (patch) | |
tree | ff3d6ee1605d9a57489a3406ee4d72719ed72017 /graphics/drm-kmod | |
parent | 48cc5a52b5295fbeebf935c467325ba7c9fa713f (diff) | |
download | freebsd-ports-gnome-40beaa138f10eaf2ba7320c4267b53b61e196adb.tar.gz freebsd-ports-gnome-40beaa138f10eaf2ba7320c4267b53b61e196adb.tar.zst freebsd-ports-gnome-40beaa138f10eaf2ba7320c4267b53b61e196adb.zip |
Update to match recent changes to current kernel API (mtx_init, suser).
Reviewed by: maintainer
Diffstat (limited to 'graphics/drm-kmod')
-rw-r--r-- | graphics/drm-kmod/files/patch-current | 20 |
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 |