diff options
| author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2021-11-10 10:57:09 +0000 |
|---|---|---|
| committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2022-01-11 17:16:28 +0000 |
| commit | 8aa4f0e63bc87d61ed3f2af3b6da5915a2a715ce (patch) | |
| tree | 8fd10a088e7997dc9c9c3a52688ae6f94457f8fa | |
| parent | bbe2fcc4d6715ada89d47b132a383e06faee80c0 (diff) | |
| download | ports-8aa4f0e63bc87d61ed3f2af3b6da5915a2a715ce.tar.gz ports-8aa4f0e63bc87d61ed3f2af3b6da5915a2a715ce.zip | |
misc/dahdi-kmod: fix build
PR: 252907
| -rw-r--r-- | misc/dahdi-kmod/files/patch-include_dahdi_compat_bsd.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/misc/dahdi-kmod/files/patch-include_dahdi_compat_bsd.h b/misc/dahdi-kmod/files/patch-include_dahdi_compat_bsd.h new file mode 100644 index 000000000000..cfbfa5706e38 --- /dev/null +++ b/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) + |
