ports/misc/dahdi-kmod/files/patch-include_dahdi_compat_bsd.h
Dmitry Marakasov 8aa4f0e63b misc/dahdi-kmod: fix build
PR:		252907
2022-01-11 20:16:28 +03:00

11 lines
483 B
C

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