Fix build on gcc-based archs.
PR: 232384 Submitted by: henry.hu.sh@gmail.com Approved by: portmgr (tier-2 blanket)