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
F104991744: D33741.id100943.diff
Wed, Dec 11, 10:40 AM
Unknown Object (File)
Tue, Nov 19, 7:12 PM
Unknown Object (File)
Mon, Nov 18, 3:50 AM
Unknown Object (File)
Mon, Nov 18, 1:35 AM
Unknown Object (File)
Nov 8 2024, 6:42 AM
Unknown Object (File)
Nov 7 2024, 11:51 PM
Unknown Object (File)
Nov 7 2024, 8:47 PM
Unknown Object (File)
Nov 5 2024, 6:35 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