error: ‘struct in6_addr’ has no member named ‘in6_u’
Hi,
while compiling my program in Fedora version- 9 i am getting the following compilation error.
error: ‘struct in6_addr’ has no member named ‘in6_u’
The same program is running in other Fedora versions like Fedora 8 and Fedora 6.
Can any one tell me what is solution for this. I have the snap shot of my prog,
struct sockaddr_in6* sin6 = (struct sockaddr_in6*)&curr->addr;
sin6->sin6_family = AF_INET6;
memcpy (&sin6->sin6_addr.in6_u.u6_addr8,
addr, sizeof(sin6->sin6_addr.in6_u.u6_addr8));
After compilation getting error,
error: ‘struct in6_addr’ has no member named ‘in6_u’
|