diff options
author | Kevin Bowling <[email protected]> | 2021-11-01 14:56:18 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2021-11-01 14:56:18 -0700 |
commit | d8a97a7be2ebd6eb305aba86ba7eec2ac0a4739b (patch) | |
tree | 214eafc583dc3e9e9d9a97582b42419b5bff458c /lib | |
parent | 8cd9f20a34c72f57d1748f27a79230fcdc41e9b8 (diff) |
Detect HAVE_LARGE_STACKS at compile time (#12584)
Move HAVE_LARGE_STACKS definitions to header and set when appropriate.
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Allan Jude <[email protected]>
Reviewed-by: Alexander Motin <[email protected]>
Reviewed-by: Ryan Moeller <[email protected]>
Signed-off-by: Kevin Bowling <[email protected]>
Closes #12350
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libspl/include/os/freebsd/sys/zfs_context_os.h | 1 | ||||
-rw-r--r-- | lib/libspl/include/os/linux/sys/zfs_context_os.h | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/libspl/include/os/freebsd/sys/zfs_context_os.h b/lib/libspl/include/os/freebsd/sys/zfs_context_os.h index f5a136d22..b9bf487c2 100644 --- a/lib/libspl/include/os/freebsd/sys/zfs_context_os.h +++ b/lib/libspl/include/os/freebsd/sys/zfs_context_os.h @@ -29,6 +29,7 @@ #ifndef ZFS_CONTEXT_OS_H_ #define ZFS_CONTEXT_OS_H_ +#define HAVE_LARGE_STACKS 1 #define ZFS_EXPORTS_PATH "/etc/zfs/exports" #endif diff --git a/lib/libspl/include/os/linux/sys/zfs_context_os.h b/lib/libspl/include/os/linux/sys/zfs_context_os.h index 008e57df4..81ced5207 100644 --- a/lib/libspl/include/os/linux/sys/zfs_context_os.h +++ b/lib/libspl/include/os/linux/sys/zfs_context_os.h @@ -22,4 +22,7 @@ #ifndef ZFS_CONTEXT_OS_H #define ZFS_CONTEXT_OS_H + +#define HAVE_LARGE_STACKS 1 + #endif |