On 22/11/10 21:31, Ted Unangst wrote: > this appears to be newish, but could possibly date as far back as gcc 4 > import. does anyone else see this? did an extra slash get added > somwhere? it looks funny. > > mini:/tmp> gcc -c fake.c > In file included from fake.c:2: > /usr//include/resolv.h:143: error: array type has incomplete element type > /usr//include/resolv.h:153: error: field 'addr' has incomplete type > /usr//include/resolv.h:170: error: field 'ina' has incomplete type > /usr//include/resolv.h:171: error: field 'in6a' has incomplete type > mini:/tmp> cat fake.c > #include <resolv.h> >
As defined by POSIX: "Multiple successive slashes are considered to be the same as one slash." http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap03.html#tag_03_266 -- Hugo Osvaldo Barrera

