(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? -- - mdz