Re: problem in manual page for ip(4)

2011-09-08 Thread Jason McIntyre
On Thu, Aug 25, 2011 at 02:44:21PM +0200, Thomas de Grivel wrote: > Hi, > > From ip(4) : > > SYNOPSIS > #include > #include > > However this fails : > > $ cat > ip.c > #include > #include > > int main() { > return 0; > } > ^D > $ gcc ip.c > In file included from ip.c:1: > /usr/

Re: problem in manual page for ip(4)

2011-09-04 Thread Jason McIntyre
On Fri, Sep 02, 2011 at 01:01:37PM -0700, Matthew Dempsky wrote: > Our sys/socket.h and netinet/in.h headers do require sys/types.h, so > it seems consistent to at least document that. ok matthew@ > > (POSIX requires headers to be self-sufficient, but we're a ways off from > that.) > there was

Re: problem in manual page for ip(4)

2011-09-02 Thread Matthew Dempsky
Our sys/socket.h and netinet/in.h headers do require sys/types.h, so it seems consistent to at least document that. ok matthew@ (POSIX requires headers to be self-sufficient, but we're a ways off from that.) On Thu, Sep 1, 2011 at 11:42 PM, Jason McIntyre wrote: > can a developer weigh in on th

Re: problem in manual page for ip(4)

2011-09-01 Thread Jason McIntyre
can a developer weigh in on this, please? jmc On Thu, Aug 25, 2011 at 02:44:21PM +0200, Thomas de Grivel wrote: > Hi, > > From ip(4) : > > SYNOPSIS > #include > #include > > However this fails : > > $ cat > ip.c > #include > #include > > int main() { > return 0; > } > ^D > $ g

Re: problem in manual page for ip(4)

2011-08-25 Thread Giovanni Bechis
On 08/25/11 14:44, Thomas de Grivel wrote: > Including before makes it ok. > So either the manual is wrong > or sys/socket.h or netinet/in.h is wrong. > Ok for this diff ? Cheers Giovanni Index: ip.4 === RCS file: /cvs/src/share/

problem in manual page for ip(4)

2011-08-25 Thread Thomas de Grivel
Hi, From ip(4) : SYNOPSIS #include #include However this fails : $ cat > ip.c #include #include int main() { return 0; } ^D $ gcc ip.c In file included from ip.c:1: /usr//include/sys/socket.h:105: error: expected specifier-qualifier-list before 'off_t' /usr//include/sys/socke

Re: problem in manual page for ip(4)

2011-08-25 Thread Thomas de Grivel
Le 08/25/11 14:44, Thomas de Grivel a icrit : Hi, From ip(4) : SYNOPSIS #include #include However this fails : $ cat > ip.c #include #include int main() { return 0; } ^D $ gcc ip.c In file included from ip.c:1: /usr//include/sys/socket.h:105: error: expected specifier-qualifier-list bef