Page MenuHomeFreeBSD

sys/mount.h: Add missing headers so it's standalone for _WANT_MOUNT
ClosedPublic

Authored by jrtc27 on Jun 6 2025, 2:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jun 5, 10:20 AM
Unknown Object (File)
Wed, Jun 3, 6:00 AM
Unknown Object (File)
Tue, Jun 2, 8:52 AM
Unknown Object (File)
Thu, May 28, 11:49 PM
Unknown Object (File)
Wed, May 27, 7:06 PM
Unknown Object (File)
Mon, May 25, 11:14 AM
Unknown Object (File)
May 12 2026, 4:08 PM
Unknown Object (File)
May 11 2026, 10:23 PM
Subscribers
None

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jrtc27 requested review of this revision.Jun 6 2025, 2:12 PM
jrtc27 created this revision.
This revision is now accepted and ready to land.Jun 6 2025, 2:46 PM

You need at least sys/types.h there as well.

In D50716#1158047, @kib wrote:

You need at least sys/types.h there as well.

Hm, isn't it more that there's an existing issue of sys/types.h not being explicitly included for normal userspace includes? All kinds of userspace-visible types are using uintN_t for example here. It just works because sys/ucred.h includes sys/types.h (and perhaps via other include chains too). I can definitely fix that, but I feel that should be a separate (precursor?) commit.

In D50716#1158047, @kib wrote:

You need at least sys/types.h there as well.

Hm, isn't it more that there's an existing issue of sys/types.h not being explicitly included for normal userspace includes? All kinds of userspace-visible types are using uintN_t for example here. It just works because sys/ucred.h includes sys/types.h (and perhaps via other include chains too). I can definitely fix that, but I feel that should be a separate (precursor?) commit.

I have no objections about sys/types.h being a preparational commit.