Skip to content

Commit

Permalink
misc/dahdi-kmod: fix build
Browse files Browse the repository at this point in the history
PR:		252907
  • Loading branch information
AMDmi3 committed Jan 11, 2022
1 parent bbe2fcc commit 8aa4f0e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions misc/dahdi-kmod/files/patch-include_dahdi_compat_bsd.h
@@ -0,0 +1,11 @@
--- freebsd/include/dahdi/compat/bsd.h.orig 2010-09-02 09:16:05 UTC
+++ freebsd/include/dahdi/compat/bsd.h
@@ -218,7 +218,7 @@ typedef struct sx rwlock_t;
#define DEFINE_RWLOCK(name) \
struct sx name; \
SX_SYSINIT(name, &name, #name)
-#define rwlock_init(rwlock) sx_init_flags(rwlock, "DAHDI rwlock", SX_NOADAPTIVE)
+#define rwlock_init(rwlock) sx_init(rwlock, "DAHDI rwlock")
#define read_lock(rwlock) sx_slock(rwlock)
#define read_unlock(rwlock) sx_sunlock(rwlock)

0 comments on commit 8aa4f0e

Please sign in to comment.