David Billinghurst (David.Billinghurst@riotinto.com>
authorAndre Leis <a.leis@gmx.net>
Sun, 25 Aug 2002 00:59:31 +0000 (00:59 +0000)
committerDavid Billinghurst <billingd@gcc.gnu.org>
Sun, 25 Aug 2002 00:59:31 +0000 (00:59 +0000)
2002-08-25  Andre Leis <a.leis@gmx.net>
            David Billinghurst (David.Billinghurst@riotinto.com>

        * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin

Co-Authored-By: David Billinghurst <David.Billinghurst@riotinto.com>
From-SVN: r56558

gcc/ada/ChangeLog
gcc/ada/sysdep.c

index 5cefb6e53cb0d7db935d4a2045c4e6c91526d7c7..5abdca2124e69b244f51873e3d5c33b677fc7f28 100644 (file)
@@ -1,3 +1,8 @@
+2002-08-25  Andre Leis <a.leis@gmx.net>
+           David Billinghurst (David.Billinghurst@riotinto.com>
+
+       * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
+
 2002-08-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
 
        * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
index 13103ef2e6ad524d8e1c930f6d0085a965180b2b..ab32fa8282c556af5f79d086b2d63a917bdd066a 100644 (file)
@@ -294,7 +294,8 @@ __gnat_ttyname (filedes)
 #if defined (linux) || defined (sun) || defined (sgi) || defined (__EMX__) \
   || (defined (__osf__) && ! defined (__alpha_vxworks)) || defined (WINNT) \
   || defined (__MACHTEN__) || defined (hpux) || defined (_AIX) \
-  || (defined (__svr4__) && defined (i386)) || defined (__Lynx__)
+  || (defined (__svr4__) && defined (i386)) || defined (__Lynx__) \
+  || defined (__CYGWIN__)
 #include <termios.h>
 
 #else
@@ -349,7 +350,7 @@ getc_immediate_common (stream, ch, end_of_file, avail, waiting)
 {
 #if defined (linux) || defined (sun) || defined (sgi) || defined (__EMX__) \
     || (defined (__osf__) && ! defined (__alpha_vxworks)) \
-    || defined (__CYGWIN32__) || defined (__MACHTEN__) || defined (hpux) \
+    || defined (__CYGWIN__) || defined (__MACHTEN__) || defined (hpux) \
     || defined (_AIX) || (defined (__svr4__) && defined (i386)) \
     || defined (__Lynx__)
   char c;