diff options
Diffstat (limited to 'libgfortran/io/unix.c')
-rw-r--r-- | libgfortran/io/unix.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libgfortran/io/unix.c b/libgfortran/io/unix.c index a0ed7b64510..69101efff04 100644 --- a/libgfortran/io/unix.c +++ b/libgfortran/io/unix.c @@ -1548,7 +1548,11 @@ stream_isatty (stream *s) char * stream_ttyname (stream *s) { +#ifdef HAVE_TTYNAME return ttyname (((unix_stream *) s)->fd); +#else + return NULL; +#endif } |