From: John David Anglin Date: Mon, 13 Oct 2014 17:02:35 +0000 (+0000) Subject: re PR libfortran/63471 (unix.c:1906:10: error: implicit declaration of function ... X-Git-Tag: releases/gcc-5.1.0~4120 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e28c760633d6e20885ed0b3a6dcefa78a74519ff;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 36b5abb71c63..6a57df0d4754 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 07f0decfa617..8885cd043943 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"); \