Skip to content

Commit

Permalink
graphics/nvidia-drm-515-kmod: Fix build on current after ae38a1a1bfdf
Browse files Browse the repository at this point in the history
Approved by:	portmgr (blanket unbreak)
  • Loading branch information
juikim committed May 16, 2024
1 parent 1b47158 commit b48d56f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions graphics/nvidia-drm-515-kmod/files/patch-nvidia-drm-conftest.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--- nvidia-drm-conftest.h.orig 2024-02-22 01:03:15 UTC
+++ nvidia-drm-conftest.h
@@ -85,7 +85,11 @@

/* For nv_drm_gem_prime_force_fence_signal */
#ifndef spin_is_locked
+#if __FreeBSD_version < 1500018
#define spin_is_locked(lock) mtx_owned(lock.m)
+#else
+#define spin_is_locked(lock) mtx_owned(lock)
+#endif
#endif

#ifndef rwsem_is_locked

0 comments on commit b48d56f

Please sign in to comment.