aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2021-10-11 18:59:39 +0000
committerWarner Losh <imp@FreeBSD.org>2021-10-11 18:59:39 +0000
commitcdccd11b366d3c64331176c4ffe591969c86b0e3 (patch)
treeb05756401079d7f7c7bf692c7afe532efd52fa2d
parentc05b382edb173d199ddef86976d594fbbb7bbf24 (diff)
downloadsrc-cdccd11b366d3c64331176c4ffe591969c86b0e3.tar.gz
src-cdccd11b366d3c64331176c4ffe591969c86b0e3.zip
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
-rw-r--r--sys/vm/swap_pager.h1
1 files changed, 1 insertions, 0 deletions
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 *);