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