git: 76efd90ab093 - main - cross-build: Include sys/types.h from sys/param.h
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 26 May 2024 17:40:23 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=76efd90ab093244634b0e6db450f1b0cca0b3263
commit 76efd90ab093244634b0e6db450f1b0cca0b3263
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2024-05-26 17:39:02 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-05-26 17:39:02 +0000
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 <val@packett.cool>
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 <sys/types.h>