This patch fixes compilation of cbfstool on Cygwin.
As reported in http://review.coreboot.org/#/c/10027 cbfstool on Cygwin likes to be compiled with -D_GNU_SOURCE. That patch was abandoned because it would unwantedly turn on more GNU extensions. Instead of doing that, only enable the define on Cygwin, switch to -std=gnu99 instead of -std=c99 to make fileno and strdup actually available. A MINGW32 check that was forgotten in Makefile was copied over from Makefile.inc to keep the two files in sync.
This patch has no impact on non-Windows builds.
Change-Id: I068b181d67daf9c7280110e64aefb634aa20c69b
354c11d cbfstool: Make sure fileno is available on Cygwin
util/cbfstool/Makefile.inc | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
Upstream: review.coreboot.org