Fix build with GCC-based architectures.
PR: 232129 Submitted by: Piotr Kubaj Approved by: portmgr (tier-2 blanket)