source:
trunk/config.tests/unix/ipv6/ipv6test.cpp@
16
Last change on this file since 16 was 2, checked in by , 16 years ago | |
---|---|
File size: 456 bytes |
Line | |
---|---|
1 | /* Sample program for configure to test IPv6 support on target |
2 | platforms. We check for the required IPv6 data structures. */ |
3 | |
4 | #if defined(__hpux) |
5 | #define _HPUX_SOURCE |
6 | #endif |
7 | |
8 | #include <sys/types.h> |
9 | #include <sys/socket.h> |
10 | #include <netinet/in.h> |
11 | |
12 | int main() |
13 | { |
14 | sockaddr_in6 tmp; |
15 | sockaddr_storage tmp2; |
16 | (void)tmp.sin6_addr.s6_addr; |
17 | (void)tmp.sin6_port; |
18 | (void)tmp.sin6_family; |
19 | (void)tmp.sin6_scope_id; |
20 | (void)tmp2; |
21 | |