Fix build on gcc-bases archs.
PR: 231493 Submitted by: Piotr Kubaj Approved by: portmgr (tier-2 blanket)