ip_opts fix

Ian Jeffray ian at jeffray.co.uk
Fri Aug 30 17:47:51 PDT 2002


Nick/Anyone-else-got-cvs-write-access?...

Can this go in CVS asap? Getting bored of seeing/explaining this. ;-)

...or is there an objection to this that I missed?


Cheers,

Ian.  </pester>


On 19/08/2002, Peter Naulls wrote:
> Google search for "ip_opts" shows why this needs to be the case,
> although it's a mystery to me why it works in Linux without it.
> 
> 
> Index: unixlib/source/clib/netinet/in.h
> ===================================================================
> RCS file: /usr/local/cvsroot/gccsdk/unixlib/source/clib/netinet/in.h,v
> retrieving revision 1.3.2.1
> diff -u -r1.3.2.1 in.h
> --- unixlib/source/clib/netinet/in.h    18 Aug 2002 15:19:06 -0000      1.3.2.1
> +++ unixlib/source/clib/netinet/in.h    19 Aug 2002 13:41:50 -0000
> @@ -236,7 +236,11 @@
>  struct ip_opts
>  {
>    struct in_addr ip_dst;       /* First hop; zero without source route.  */
> +#if defined(__cplusplus)
> +  char Ip_opts[40];             /* Cannot have same name as class */
> +#else
>    char ip_opts[40];            /* Actually variable in size.  */
> +#endif  
>  };
>  
>  /* Argument structure for IP_ADD_MEMBERSHIP and IP_DROP_MEMBERSHIP.  */
> 
> 






More information about the gcc mailing list