diff options
author | John David Anglin <dave.anglin@nrc-cnrc.gc.ca> | 2014-10-13 17:02:35 +0000 |
---|---|---|
committer | John David Anglin <danglin@gcc.gnu.org> | 2014-10-13 17:02:35 +0000 |
commit | e28c760633d6e20885ed0b3a6dcefa78a74519ff (patch) | |
tree | a669f3c826c6fce5945c948c1c8edf99301c6840 | |
parent | aaf7bd8a503f30585ee16e7abec2d7d08ff25744 (diff) | |
download | gcc-e28c760633d6e20885ed0b3a6dcefa78a74519ff.zip gcc-e28c760633d6e20885ed0b3a6dcefa78a74519ff.tar.gz gcc-e28c760633d6e20885ed0b3a6dcefa78a74519ff.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/pa/pa-hpux11.h | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 36b5abb..6a57df0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2014-10-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> + + PR libfortran/63471 + * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT + when _HPUX_SOURCE is defined. + 2014-10-13 Jan Hubicka <hubicka@ucw.cz> PR tree-optimization/62127 diff --git a/gcc/config/pa/pa-hpux11.h b/gcc/config/pa/pa-hpux11.h index 07f0dec..8885cd0 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"); \ |