Page MenuHomeFreeBSD

file: Turns out we need xlocal.h protection
ClosedPublic

Authored by imp on Jan 4 2022, 7:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Mar 1, 7:25 PM
Unknown Object (File)
Feb 16 2025, 3:42 AM
Unknown Object (File)
Feb 13 2025, 4:12 AM
Unknown Object (File)
Jan 29 2025, 4:36 PM
Unknown Object (File)
Jan 26 2025, 12:17 AM
Unknown Object (File)
Jan 22 2025, 12:07 PM
Unknown Object (File)
Jan 17 2025, 3:24 PM
Unknown Object (File)
Jan 11 2025, 4:04 PM
Subscribers
None

Details

Summary

It turns out that we still need xlocal.h protection for when we're
cross building on Linux. Linux doesn't have this file, but os/x
does. Before, we'd assume we didn't have it, like old FreeBSD, when
cross compiling. After the latest update, all that code was removed so
cross compiling needs to be handled separaetly. Do so by defining
HAVE_XLOCALE_H only when we're not building on linux. This allows us
to build the mkmagic build tool needed to build file(1).

Diff Detail

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