Mailinglist Archive: opensuse-buildservice (227 mails)

< Previous Next >
Re: [opensuse-buildservice] Build error struct udphdr' missing 'uh_dport' for sipp on BS
  • From: Michael Schroeder <mls@xxxxxxx>
  • Date: Wed, 31 Jan 2007 21:39:58 +0100
  • Message-id: <20070131203958.GA32171@xxxxxxx>
On Wed, Jan 31, 2007 at 09:25:54PM +0100, Richard Bos wrote:
> It looks to me that the structure is provided by:
> /usr/include/netinet/udp.h
> /* UDP header as specified by RFC 768, August 1980. */
>
> struct udphdr
> {
> u_int16_t uh_sport; /* source port */
> u_int16_t uh_dport; /* destination port */
> u_int16_t uh_ulen; /* udp length */
> u_int16_t uh_sum; /* udp checksum */
> };

On my system struct udphdr is defined as

struct udphdr
{
u_int16_t source;
u_int16_t dest;
u_int16_t len;
u_int16_t check;
};

See the #ifdef in udp.h. I don't know why your local builds have
_BSD_SOURCE defined.

Cheers,
Michael.

--
Michael Schroeder mls@xxxxxxx
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References