This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: rdi-share devsw.c compilation failure [RFA]
- To: Jonathan Larmour <jlarmour at redhat dot com>
- Subject: Re: rdi-share devsw.c compilation failure [RFA]
- From: Fernando Nasser <fnasser at redhat dot com>
- Date: Thu, 03 May 2001 09:21:25 -0400
- CC: gdb-patches at sources dot redhat dot com
- Organization: Red Hat Canada
- References: <3AF14FDA.4B17F4B5@redhat.com>
Jonathan Larmour wrote:
>
> Newer versions of glibc cause compilation of rdi-share/devsw.c to fail
> because sys/time.h no longer guarantees the presence of struct tm.
>
> This patch fixes that. Okay to install? Is there anything I need to do
> specially since this rdi-share stuff is imported?
>
Go ahead. We have no other choice (as Matthew and I learned recently).
Fernando
> 2001-05-03 Jonathan Larmour <jlarmour@redhat.com>
>
> * rdi-share/devsw.c: Include <time.h> for struct tm
>
> Index: devsw.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/rdi-share/devsw.c,v
> retrieving revision 1.1.1.5
> diff -u -5 -p -r1.1.1.5 devsw.c
> --- devsw.c 2000/01/25 02:40:14 1.1.1.5
> +++ devsw.c 2001/05/03 12:32:07
> @@ -14,10 +14,11 @@
> */
> #include <stdio.h>
> #include <stdlib.h>
> #include <string.h>
> #include <fcntl.h>
> +#include <time.h>
>
> #include "adp.h"
> #include "sys.h"
> #include "hsys.h"
> #include "rxtx.h"
>
> Jifl
> --
> Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
> Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine
--
Fernando Nasser
Red Hat Canada Ltd. E-Mail: fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9