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