cygwin patch for ada/sysdep.c

Christopher Faylor cgf@redhat.com
Mon Jun 10 20:13:00 GMT 2002


On Fri, Jun 07, 2002 at 02:05:57PM +1000, Billinghurst, David (CRTS) wrote:
>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__)
                  ^^^^^^^^

CYGWIN32 is ancient and deprecated.  Please use __CYGWIN__.

cgf



More information about the Gcc-patches mailing list