diff options
author | Jessica Clarke <jrtc27@FreeBSD.org> | 2022-08-18 01:46:27 +0000 |
---|---|---|
committer | Jessica Clarke <jrtc27@FreeBSD.org> | 2022-08-18 01:46:27 +0000 |
commit | e9ba1fd5eda2c0bc22edafa75b2ef10222bf24e6 (patch) | |
tree | 60911f1368fc262eb235f0ba9db42d1624508484 /tools/build/cross-build/include | |
parent | 92fc50b496ee8a5d0a0fc2025283e66351ae03d4 (diff) | |
download | src-e9ba1fd5eda2c0bc22edafa75b2ef10222bf24e6.tar.gz src-e9ba1fd5eda2c0bc22edafa75b2ef10222bf24e6.zip |
tools/build: Provide FreeBSD's bitstring API when cross-building
This is needed for building makefs as a cross-tool since the ZFS code
uses these APIs.
Reviewed by: emaste
Fixes: 240afd8c1fcc ("makefs: Add ZFS support")
Differential Revision: https://reviews.freebsd.org/D36133
Diffstat (limited to 'tools/build/cross-build/include')
-rw-r--r-- | tools/build/cross-build/include/common/sys/types.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/build/cross-build/include/common/sys/types.h b/tools/build/cross-build/include/common/sys/types.h index 044ca6bed4f8..82436e7e9224 100644 --- a/tools/build/cross-build/include/common/sys/types.h +++ b/tools/build/cross-build/include/common/sys/types.h @@ -68,4 +68,8 @@ typedef unsigned long cap_ioctl_t; struct cap_rights; typedef struct cap_rights cap_rights_t; + +/* Needed for bitstring */ +#include <sys/bitcount.h> + #endif |