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

Bug#108663: funky bug



On Fri, Sep 28, 2001 at 06:40:22PM -0400, Matt Zimmerman wrote:
> (Bruce: see http://bugs.debian.org/108663 for background)
> 
> On Wed, Sep 26, 2001 at 02:18:42PM -0400, Daniel Jacobowitz wrote:
> 
> > -D_GNU_SOURCE is absolutely necessary to use libstdc++ v3.0.  Thus, G++
> > 3.0 automatically defines it.
> > 
> > You're not going to be able to do anything about that :)  I recommend you
> > tweak the use of your structure to not rely on __FAVOR_BSD.
> 
> I believe Linux is the OS that pchar woks on that uses different names for
> the members of struct udphdr.  Until now, _BSD_SOURCE has provided a way to
> have things "just work" on Linux.  Is it now necessary to do:
> 
> #if defined(__linux__) && defined(__GLIBC__)
> #define uh_sport source
> #define uh_dport dest
> #define uh_ulen len
> #define uh_sum check
> #endif
> 
> in the pchar source?  Would that conditional be correct in all cases?

... no, not really.  You probably want to add !defined (__FAVOR_BSD)
to that.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer



Reply to: