http://groups.google.com/group/gnu.gcc.help/browse_thread/thread/6bcf1e13819aef7a# http://groups.google.com/group/comp.lang.c/browse_thread/thread/a51b90d9ed8580d6
Using the --std=c99 switch, programs using getaddrinfo and other IPv6-aware networking commands don't work: [ ~/src/_sandbox] gcc --std=c99 -Wall ipv6_test.c -o it ipv6_test.c: In function `main': ipv6_test.c:25: error: storage size of 'hints' isn't known ipv6_test.c:34: warning: implicit declaration of function `getaddrinfo' ipv6_test.c:38: error: dereferencing pointer to incomplete type ... Removing the switch cause the program to build, but if I use c99-specific programming then it will fail because of that. -- Summary: getaddrinfo and friends not work with c99 Product: gcc Version: 4.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: nathanb at vt dot edu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36585