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)
Sun, May 18, 2:01 PM
Unknown Object (File)
Apr 23 2025, 1:05 AM
Unknown Object (File)
Apr 23 2025, 12:00 AM
Unknown Object (File)
Apr 22 2025, 11:48 PM
Unknown Object (File)
Apr 22 2025, 11:10 PM
Unknown Object (File)
Apr 18 2025, 10:05 PM
Unknown Object (File)
Apr 15 2025, 10:43 PM
Unknown Object (File)
Apr 12 2025, 9:48 AM
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