Date: Mon, 11 Oct 2021 19:02:08 GMT From: Warner Losh <imp@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: cdccd11b366d - main - forward declare struct thread Message-ID: <202110111902.19BJ28Tb097165@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=cdccd11b366d3c64331176c4ffe591969c86b0e3 commit cdccd11b366d3c64331176c4ffe591969c86b0e3 Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2021-10-11 18:59:39 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2021-10-11 18:59:39 +0000 forward declare struct thread sys/sysctl.h moved struct thread forward declaration under #ifdef _KERNEL and so this header fails when included from userland. Add a forward declaration here. Fixes: 99eefc727eba Sponsored by: Netflix --- sys/vm/swap_pager.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/vm/swap_pager.h b/sys/vm/swap_pager.h index 20b9bc95b1b2..395fbc9957c4 100644 --- a/sys/vm/swap_pager.h +++ b/sys/vm/swap_pager.h @@ -44,6 +44,7 @@ struct buf; struct swdevt; +struct thread; typedef void sw_strategy_t(struct buf *, struct swdevt *); typedef void sw_close_t(struct thread *, struct swdevt *);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202110111902.19BJ28Tb097165>