[PATCH] Change in6_addr to match test7-pre7

Jakub Jelinek jakub@redhat.com
Wed Aug 23 00:11:00 GMT 2000


Hi!

in6_addr in the kernel makes no longer any difference between alignment on
32bit and 64bit arches and glibc must match it.
It should make no binary differences in glibc.
See the discussion at sparclinux-cvs@vger.kernel.org.

2000-08-23  Jakub Jelinek  <jakub@redhat.com>

	* inet/netinet/in.h (struct in6_addr): Don't enforce 64bit alignment
	on 64bit arches.

--- libc/inet/netinet/in.h.jj	Wed May 31 23:02:40 2000
+++ libc/inet/netinet/in.h	Wed Aug 23 09:07:31 2000
@@ -171,14 +171,10 @@ struct in6_addr
 	uint8_t	u6_addr8[16];
 	uint16_t u6_addr16[8];
 	uint32_t u6_addr32[4];
-#if ULONG_MAX > 0xffffffff
-	uint64_t u6_addr64[2];
-#endif
       } in6_u;
 #define s6_addr			in6_u.u6_addr8
 #define s6_addr16		in6_u.u6_addr16
 #define s6_addr32		in6_u.u6_addr32
-#define s6_addr64		in6_u.u6_addr64
   };
 
 extern const struct in6_addr in6addr_any;        /* :: */

	Jakub


More information about the Libc-hacker mailing list