aboutsummaryrefslogtreecommitdiffstats
path: root/src/compat.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* compat: backport m_snd_tag_rele to 12Jason A. Donenfeld2021-04-221-0/+11
| | | | | | | This doesn't add any reference counting, opting instead to go right to the free. This could cause problems, but hopefully not. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: cleanup openbsd lock definesJason A. Donenfeld2021-04-201-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* compat: backport callout_func_t to 12.1Jason A. Donenfeld2021-03-191-0/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* compat: backport properly to 13Jason A. Donenfeld2021-03-191-30/+30
| | | | | | | Turns out that taskqgroup_drain_all is new in 14. Reported-by: Evilham <contact@evilham.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* compat: backport to FreeBSD 12.1Jason A. Donenfeld2021-03-181-0/+17
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* compat: backport to FreeBSD 12.2Jason A. Donenfeld2021-03-181-0/+71
This should allow us to get more testing coverage earlier. This port here is also a bit janky. I really don't like the taskqgroup business, having to copy and paste those structs. And this isn't well tested, either. But, it's a start. This distinguishes between compat.h and support.h, though both header files are intended to operate in more or less the same way. It's important to keep some discipline between things that we're backporting and things that aren't _yet_ upstream or are shims for OpenBSD. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>