Created attachment 204087 [details] patch Add USE_CSTD=c99 to fix: lightdm-gtk-greeter.c: In function 'start_authentication': lightdm-gtk-greeter.c:2023: error: 'for' loop initial declaration used outside C99 mode Happens when building with base GCC. Tested on powerpc64 and amd64.
Comment on attachment 204087 [details] patch Looks good to me, please feel free to commit this change Piotr.
A commit references this bug: Author: pkubaj Date: Tue Apr 30 14:26:32 UTC 2019 New revision: 500496 URL: https://svnweb.freebsd.org/changeset/ports/500496 Log: x11/lightdm-gtk-greeter: fix build with GCC-based architectures Add USE_CSTD=c99 to fix: lightdm-gtk-greeter.c: In function 'start_authentication': lightdm-gtk-greeter.c:2023: error: 'for' loop initial declaration used outside C99 mode PR: 237626 Approved by: woodsb02 (maintainer), mat (mentor) Differential Revision: https://reviews.freebsd.org/D20094 Changes: head/x11/lightdm-gtk-greeter/Makefile