1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-07 06:40:06 +00:00

graphics/nvidia-drm-515-kmod: Fix build on current after ae38a1a1bfdf

Approved by:	portmgr (blanket unbreak)
This commit is contained in:
Jung-uk Kim 2024-05-16 16:48:03 -04:00
parent 1b47158c70
commit b48d56f686

View File

@ -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