From e28c760633d6e20885ed0b3a6dcefa78a74519ff Mon Sep 17 00:00:00 2001 From: John David Anglin Date: Mon, 13 Oct 2014 17:02:35 +0000 Subject: [PATCH] re PR libfortran/63471 (unix.c:1906:10: error: implicit declaration of function 'ttyname_r') PR libfortran/63471 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT when _HPUX_SOURCE is defined. From-SVN: r216152 --- gcc/ChangeLog | 6 ++++++ gcc/config/pa/pa-hpux11.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 36b5abb71c6..6a57df0d475 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2014-10-13 John David Anglin + + PR libfortran/63471 + * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT + when _HPUX_SOURCE is defined. + 2014-10-13 Jan Hubicka PR tree-optimization/62127 diff --git a/gcc/config/pa/pa-hpux11.h b/gcc/config/pa/pa-hpux11.h index 07f0decfa61..8885cd04394 100644 --- a/gcc/config/pa/pa-hpux11.h +++ b/gcc/config/pa/pa-hpux11.h @@ -40,6 +40,7 @@ along with GCC; see the file COPYING3. If not see if (c_dialect_cxx ()) \ { \ builtin_define ("_HPUX_SOURCE"); \ + builtin_define ("_REENTRANT"); \ builtin_define ("_INCLUDE_LONGLONG"); \ builtin_define ("__STDCPP__"); \ } \ @@ -48,6 +49,7 @@ along with GCC; see the file COPYING3. If not see if (!flag_iso) \ { \ builtin_define ("_HPUX_SOURCE"); \ + builtin_define ("_REENTRANT"); \ if (preprocessing_trad_p ()) \ { \ builtin_define ("hp9000s800"); \ -- 2.30.2