ip_opts fix

Peter Naulls peter at chocky.org
Mon Aug 19 06:41:34 PDT 2002


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.  */


-- 
------------------------------------------------------------------------
 Peter Naulls - peter at chocky.org
 Homepage                     -  http://www.chocky.org/
 RISC OS C Programming        -  http://www.riscos.info/
 Unix Programs on RISC OS     -  http://www.chocky.org/unix/
------------------------------------------------------------------------
 



More information about the gcc mailing list