From 10edcd0b0ca87aa34dd9b85494beb8fa6a0b3354 Mon Sep 17 00:00:00 2001 From: Andrew Innes Date: Wed, 1 Nov 2023 07:23:50 +0800 Subject: [PATCH] add ifdef for apple specific structs Signed-off-by: Andrew Innes --- include/sys/fs/zfs.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/sys/fs/zfs.h b/include/sys/fs/zfs.h index a4e70fc53448..e80dfc345681 100644 --- a/include/sys/fs/zfs.h +++ b/include/sys/fs/zfs.h @@ -556,6 +556,7 @@ typedef enum { ZFS_PREFETCH_ALL = 2 } zfs_prefetch_type_t; +#ifdef __APPLE__ typedef enum zfs_mimic { ZFS_MIMIC_OFF = 0, ZFS_MIMIC_HFS, @@ -567,6 +568,7 @@ typedef enum zfs_devdisk { ZFS_DEVDISK_OFF, ZFS_DEVDISK_ON } zfs_devdisk_t; +#endif /* __APPLE__ */ #define DEFAULT_PBKDF2_ITERATIONS 350000 #define MIN_PBKDF2_ITERATIONS 100000