Page MenuHomeFreeBSD

makefs: Fix issues building as a cross-tool on non-FreeBSD
ClosedPublic

Authored by jrtc27 on Aug 11 2022, 12:03 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Mar 28, 6:10 AM
Unknown Object (File)
Sat, Mar 21, 3:22 AM
Unknown Object (File)
Fri, Mar 20, 10:23 AM
Unknown Object (File)
Mon, Mar 16, 7:42 PM
Unknown Object (File)
Mon, Mar 16, 7:35 PM
Unknown Object (File)
Mon, Mar 16, 6:28 AM
Unknown Object (File)
Sun, Mar 15, 6:25 PM
Unknown Object (File)
Thu, Mar 12, 1:44 PM

Details

Summary

This adds missing includes, uses the standard dirent.h rather than the
BSD-specific sys/dirent.h subset (which works on macOS but not Linux)
and works around Linux's lack of st_birthtim.

This allows usr.sbin/makefs to be added to LOCAL_XTOOL_DIRS again on
macOS and Linux so that disk images can be cross-built.

Fixes: 240afd8c1fcc ("makefs: Add ZFS support")

Diff Detail

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

Event Timeline

This revision is now accepted and ready to land.Aug 11 2022, 12:34 AM

Oh nice, didn't see these changes, I just went for the simple workaround in D36089