aboutsummaryrefslogtreecommitdiff
path: root/tools/build/cross-build/include/common/sys/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/build/cross-build/include/common/sys/types.h')
-rw-r--r--tools/build/cross-build/include/common/sys/types.h12
1 files changed, 12 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..0bfe2bac2aea 100644
--- a/tools/build/cross-build/include/common/sys/types.h
+++ b/tools/build/cross-build/include/common/sys/types.h
@@ -68,4 +68,16 @@ typedef unsigned long cap_ioctl_t;
struct cap_rights;
typedef struct cap_rights cap_rights_t;
+
+/*
+ * make.py uses these headers during the bmake bootstrap on Linux only, at
+ * which point sys/bitcount.h won't yet exist, so don't include it there.
+ *
+ * TODO: Untangle this mess.
+ */
+#if __has_include(<sys/bitcount.h>)
+/* Needed for bitstring */
+#include <sys/bitcount.h>
+#endif
+
#endif