Fix build on GCC-based systems:
src/main.c:47: error: 'for' loop initial declaration used outside C99 mode
Approved by: portmgr (tier-2 blanket)