On 08/25/11 14:44, Thomas de Grivel wrote:
> Including <sys/types.h> before <sys/socket.h> 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/man/man4/ip.4,v
retrieving revision 1.32
diff -u -p -r1.32 ip.4
--- ip.4 15 Jun 2011 13:28:03 -0000 1.32
+++ ip.4 25 Aug 2011 13:58:51 -0000
@@ -37,6 +37,7 @@
.Nm ip
.Nd Internet Protocol
.Sh SYNOPSIS
+.Fd #include <sys/types.h>
.Fd #include <sys/socket.h>
.Fd #include <netinet/in.h>
.Ft int
Index: ip6.4
===================================================================
RCS file: /cvs/src/share/man/man4/ip6.4,v
retrieving revision 1.23
diff -u -p -r1.23 ip6.4
--- ip6.4 31 Aug 2009 04:46:32 -0000 1.23
+++ ip6.4 25 Aug 2011 13:58:51 -0000
@@ -33,6 +33,7 @@
.Nm ip6
.Nd Internet Protocol version 6 (IPv6) network layer
.Sh SYNOPSIS
+.In sys/types.h
.In sys/socket.h
.In netinet/in.h
.Ft int