autofs: fix cross-compilation

Cherry-pick cross-compilation fixes from the upstream Gentoo repo:

https://github.com/gonzoua/gentoo/commit/aad422b52bba88b5da99a1894e6103a54d1cdcad
https://github.com/gonzoua/gentoo/commit/c992e05ebb19be8c3982a4617ed3fb216531eb86

BUG=b/177594591
TEST=presubmit
RELEASE_NOTE=None

Change-Id: I48197dde8408539285b7679f84a8d4777c0cc1ab
Reviewed-on: https://cos-review.googlesource.com/c/third_party/overlays/portage-stable/+/10900
Reviewed-by: Roy Yang <royyang@google.com>
Tested-by: Oleksandr Tymoshenko <ovt@google.com>
2 files changed