Page MenuHomeFreeBSD

freebsd32.h: Include <sys/mount.h>
ClosedPublic

Authored by jfree on Feb 16 2023, 5:45 AM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 28 2024, 7:06 PM
Unknown Object (File)
Dec 6 2024, 6:56 AM
Unknown Object (File)
Nov 24 2024, 6:53 PM
Unknown Object (File)
Nov 22 2024, 5:18 PM
Unknown Object (File)
Nov 20 2024, 5:51 PM
Unknown Object (File)
Nov 10 2024, 2:23 PM
Unknown Object (File)
Nov 8 2024, 5:01 AM
Unknown Object (File)
Nov 6 2024, 11:02 AM
Subscribers

Details

Reviewers
brooks
Summary

The freebsd32.h header uses an fsid_t type in struct ostatfs32. Include sys/mount.h to avoid potential compilation errors in situations where it is not already included.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

Seems fine.

I'm not entirely convinced struct ostatfs32 shouldn't be defined directly in sys/compat/freebsd32/freebsd32_misc.c, but that's an argument for another day.

This revision is now accepted and ready to land.Feb 16 2023, 6:51 PM

This differential is superseded by this review:
https://reviews.freebsd.org/D40177
which covers some more include self-containment issues in aarch64.