From 76efd90ab093244634b0e6db450f1b0cca0b3263 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Sun, 26 May 2024 11:39:02 -0600 Subject: [PATCH] cross-build: Include sys/types.h from sys/param.h FreeBSD has a style(9) enforced assumption that sys/param.h includes sys/types.h. However, Linux under musl doesn't do this so go ahead and explicitly include it here. It won't hurt on the glibc systems, and helps musl. Co-authored-by: Val Packett Sponsored by: Netflix Pull Request: https://github.com/freebsd/freebsd-src/pull/1066 Reviewed by: val_packett.cool Differential Revision: https://reviews.freebsd.org/D45352 --- tools/build/cross-build/include/linux/sys/param.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/build/cross-build/include/linux/sys/param.h b/tools/build/cross-build/include/linux/sys/param.h index 33679d39ed49..3b29b9ef8430 100644 --- a/tools/build/cross-build/include/linux/sys/param.h +++ b/tools/build/cross-build/include/linux/sys/param.h @@ -45,3 +45,5 @@ * let's use 32 since that will work across all systems */ #define MAXLOGNAME 33 /* max login name length (incl. NUL) */ + +#include