From 94a830adf689e337cf87677c8bdca9320b5ac0f5 Mon Sep 17 00:00:00 2001 From: Mateusz Guzik Date: Thu, 13 Jul 2023 18:06:57 +0200 Subject: [PATCH] FreeBSD: catch up to __FreeBSD_version 1400093 Reviewed-by: Alexander Motin Signed-off-by: Mateusz Guzik Closes #15036 --- include/os/freebsd/spl/sys/vnode.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/os/freebsd/spl/sys/vnode.h b/include/os/freebsd/spl/sys/vnode.h index b7ac12f3d6..3eb77af491 100644 --- a/include/os/freebsd/spl/sys/vnode.h +++ b/include/os/freebsd/spl/sys/vnode.h @@ -36,7 +36,11 @@ struct xucred; typedef struct flock flock64_t; typedef struct vnode vnode_t; typedef struct vattr vattr_t; +#if __FreeBSD_version < 1400093 typedef enum vtype vtype_t; +#else +#define vtype_t __enum_uint8(vtype) +#endif #include #include