aboutsummaryrefslogtreecommitdiff
path: root/libgfortran
diff options
context:
space:
mode:
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>2016-12-21 09:49:40 +0000
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>2016-12-21 09:49:40 +0000
commit71d9113f9b0dd357236dcaadda0ddd9faf1607be (patch)
tree5588f37e2f31e6906457df6b843e50d7ecad0cab /libgfortran
parentb528e42751b731746d98427fb6d9ec8634a72555 (diff)
downloadgcc-71d9113f9b0dd357236dcaadda0ddd9faf1607be.zip
gcc-71d9113f9b0dd357236dcaadda0ddd9faf1607be.tar.gz
gcc-71d9113f9b0dd357236dcaadda0ddd9faf1607be.tar.bz2
re PR libfortran/70311 (libgfortran build dies on "implicit declaration of function strncasecmp")
PR libfortran/70311 * intrinsics/selected_char_kind.c: Include <strings.h> header. * runtime/environ.c: Include <strings.h> header. * runtime/string.c: Include <strings.h> header. From-SVN: r243843
Diffstat (limited to 'libgfortran')
-rw-r--r--libgfortran/ChangeLog7
-rw-r--r--libgfortran/intrinsics/selected_char_kind.c2
-rw-r--r--libgfortran/runtime/environ.c1
-rw-r--r--libgfortran/runtime/string.c1
4 files changed, 10 insertions, 1 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog
index 2c24253..c98e589 100644
--- a/libgfortran/ChangeLog
+++ b/libgfortran/ChangeLog
@@ -1,5 +1,12 @@
2016-12-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
+ PR libfortran/70311
+ * intrinsics/selected_char_kind.c: Include <strings.h> header.
+ * runtime/environ.c: Include <strings.h> header.
+ * runtime/string.c: Include <strings.h> header.
+
+2016-12-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
+
* gfortran.map: Remove _gfortran_ftell2.
* io/intrinsics.c (ftell): Remove.
(ftell2): Rename to ftell.
diff --git a/libgfortran/intrinsics/selected_char_kind.c b/libgfortran/intrinsics/selected_char_kind.c
index bbb95a9..8e400a4 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 <string.h>
+#include <strings.h>
extern GFC_INTEGER_4 selected_char_kind (gfc_charlen_type, char *);
diff --git a/libgfortran/runtime/environ.c b/libgfortran/runtime/environ.c
index 07c6351..280f533 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 <string.h>
+#include <strings.h>
#include <stdlib.h>
#include <ctype.h>
diff --git a/libgfortran/runtime/string.c b/libgfortran/runtime/string.c
index bb486d9..2150573 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 <string.h>
+#include <strings.h>
#include <stdlib.h>