tsp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tsp-devel] patch and work on cross compil


From: Frederik Deweerdt
Subject: Re: [Tsp-devel] patch and work on cross compil
Date: Thu, 12 Jun 2008 15:14:41 +0200
User-agent: Mutt/1.5.17 (2007-11-01)

On Thu, Jun 12, 2008 at 02:19:13PM +0200, Frederik Deweerdt wrote:
> On Thu, Jun 12, 2008 at 11:04:05AM +0200, sanhes guillaume wrote:
> > Hi all,
> > 
> > I have installed fedora core 9 for my development needs. tsp doesn't compile
> > on new fedora versions because in the file "tsp_stream_receiver.c", the
> > macro "h_addr" no longer exists. This macro can be replaced in all fedora
> > versions by "h_addr_list[0]".
> > 
> > In Enclosure a patch for modified the file 
> > 
> > The patched file "tsp_stream_receiver.c" is attached in this mail.
> > 
> Could you send fc9's netdb.h ? I suspect this could be fixed with a
> #define _GNU_SOURCE 1 somewhere.
> 
And so it seems:
#if defined __USE_MISC || defined __USE_GNU
# define        h_addr  h_addr_list[0] /* Address, for backward compatibility.*/
#endif

It seems that __USE_GNU depends on _GNU_SOURCE, and __USE_MISC depends
on either _BSD_SOURCE or _SVID_SOURCE. I would favor defining
_BSD_SOURCE, as this should be closer to Solaris (the other TSP
platform).

Regards,
Frederik




reply via email to

[Prev in Thread] Current Thread [Next in Thread]