Cygwin patch for ada/sysdep.c

Billinghurst, David (CRTS) David.Billinghurst@riotinto.com
Thu Jun 6 21:06:00 GMT 2002


The following patch is required to build ada on cygwin.
See http://gcc.gnu.org/ml/gcc/2002-05/msg02644.html

Bootstrapped on 3.1 and 3.2 pre 2002-03-06.

Ok for 3.1 and 3.2

2002-06-07	Andre Leis <a.leis@gmx.net>
		David Billinghurst (David.Billinghurst@riotinto.com>

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

diff -u -p -r1.7 sysdep.c
--- sysdep.c    14 Mar 2002 11:00:19 -0000      1.7
+++ sysdep.c    7 Jun 2002 03:17:51 -0000
@@ -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 (__CYGWIN32__)
 #include <termios.h>

 #else



More information about the Gcc-patches mailing list