diff options
author | 2018-05-08 14:43:24 +0000 | |
---|---|---|
committer | 2018-05-08 14:43:24 +0000 | |
commit | 62ae4a005ed8095b0599c3009216febeadd2a893 (patch) | |
tree | 1e049bedb0dc1a518fe1ad32cb281d6a6b5d959a | |
parent | Use fd_getfile() in sysctl_file() instead of rewriting it. (diff) | |
download | wireguard-openbsd-62ae4a005ed8095b0599c3009216febeadd2a893.tar.xz wireguard-openbsd-62ae4a005ed8095b0599c3009216febeadd2a893.zip |
Do do include <sys/mount.h> because it breaks some userland programs
that define _KERNEL...
-rw-r--r-- | sys/sys/file.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/file.h b/sys/sys/file.h index fd5dd6c3d5c..1866491e5c6 100644 --- a/sys/sys/file.h +++ b/sys/sys/file.h @@ -1,4 +1,4 @@ -/* $OpenBSD: file.h,v 1.43 2018/05/08 08:58:49 mpi Exp $ */ +/* $OpenBSD: file.h,v 1.44 2018/05/08 14:43:24 mpi Exp $ */ /* $NetBSD: file.h,v 1.11 1995/03/26 20:24:13 jtc Exp $ */ /* @@ -38,7 +38,6 @@ #else /* _KERNEL */ #include <sys/queue.h> #include <sys/mutex.h> -#include <sys/mount.h> /* vfs_stall_barrier() */ struct proc; struct uio; @@ -99,6 +98,7 @@ struct file { #define FREF(fp) \ do { \ + extern void vfs_stall_barrier(void); \ vfs_stall_barrier(); \ (fp)->f_count++; \ } while (0) |