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