mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00:00
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
This commit is contained in:
parent
4300e05361
commit
76efd90ab0
|
@ -45,3 +45,5 @@
|
||||||
* let's use 32 since that will work across all systems
|
* let's use 32 since that will work across all systems
|
||||||
*/
|
*/
|
||||||
#define MAXLOGNAME 33 /* max login name length (incl. NUL) */
|
#define MAXLOGNAME 33 /* max login name length (incl. NUL) */
|
||||||
|
|
||||||
|
#include <sys/types.h>
|
||||||
|
|
Loading…
Reference in a new issue