The POSIX function strncasecmp() is used in three libgfortran files. It is 
located in <strings.h>, but these files include <string.h> (singular vs. 
plural). Apparently most implementations (linux, darwin, …) are lenient and 
allow that, but not mingw32, causing PR 70311 
(https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70311)

The attached patch, bootstrapped and regtested on x86_64-apple-darwin16.3.0, 
fixes the issue by including the proper header.
Committed as revision 243843.

FX

Attachment: strings.diff
Description: Binary data

Reply via email to