From 71d9113f9b0dd357236dcaadda0ddd9faf1607be Mon Sep 17 00:00:00 2001 From: Francois-Xavier Coudert Date: Wed, 21 Dec 2016 09:49:40 +0000 Subject: [PATCH] re PR libfortran/70311 (libgfortran build dies on "implicit declaration of function strncasecmp") PR libfortran/70311 * intrinsics/selected_char_kind.c: Include header. * runtime/environ.c: Include header. * runtime/string.c: Include header. From-SVN: r243843 --- libgfortran/ChangeLog | 7 +++++++ libgfortran/intrinsics/selected_char_kind.c | 2 +- libgfortran/runtime/environ.c | 1 + libgfortran/runtime/string.c | 1 + 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 2c24253b640..c98e5890cbe 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,10 @@ +2016-12-21 Francois-Xavier Coudert + + PR libfortran/70311 + * intrinsics/selected_char_kind.c: Include header. + * runtime/environ.c: Include header. + * runtime/string.c: Include header. + 2016-12-21 Francois-Xavier Coudert * gfortran.map: Remove _gfortran_ftell2. diff --git a/libgfortran/intrinsics/selected_char_kind.c b/libgfortran/intrinsics/selected_char_kind.c index bbb95a93cdc..8e400a45e64 100644 --- a/libgfortran/intrinsics/selected_char_kind.c +++ b/libgfortran/intrinsics/selected_char_kind.c @@ -25,7 +25,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #include "libgfortran.h" -#include +#include extern GFC_INTEGER_4 selected_char_kind (gfc_charlen_type, char *); diff --git a/libgfortran/runtime/environ.c b/libgfortran/runtime/environ.c index 07c6351a8d9..280f53303fa 100644 --- a/libgfortran/runtime/environ.c +++ b/libgfortran/runtime/environ.c @@ -25,6 +25,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #include "libgfortran.h" #include +#include #include #include diff --git a/libgfortran/runtime/string.c b/libgfortran/runtime/string.c index bb486d9bb6b..21505730ccb 100644 --- a/libgfortran/runtime/string.c +++ b/libgfortran/runtime/string.c @@ -24,6 +24,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #include "libgfortran.h" #include +#include #include -- 2.30.2