git: 8aa4f0e63bc8 - main - misc/dahdi-kmod: fix build
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 11 Jan 2022 17:18:59 UTC
The branch main has been updated by amdmi3: URL: https://cgit.FreeBSD.org/ports/commit/?id=8aa4f0e63bc87d61ed3f2af3b6da5915a2a715ce commit 8aa4f0e63bc87d61ed3f2af3b6da5915a2a715ce Author: Dmitry Marakasov <amdmi3@FreeBSD.org> AuthorDate: 2021-11-10 10:57:09 +0000 Commit: Dmitry Marakasov <amdmi3@FreeBSD.org> CommitDate: 2022-01-11 17:16:28 +0000 misc/dahdi-kmod: fix build PR: 252907 --- misc/dahdi-kmod/files/patch-include_dahdi_compat_bsd.h | 11 +++++++++++ 1 file changed, 11 insertions(+) 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) +