Hi list,
if anyone tries to develop an application using tun(4), the manpage
misses some includes neccesary for IFT_* and IFF_* constants.
If you switch the order of sys/types.h and sys/socket.h, your program
won't compile (is this considered a bug?)

Anyone willing to comment/commit? Thanks

--
Martin Pelikan

Index: tun.4
===================================================================
RCS file: /cvs/src/share/man/man4/tun.4,v
retrieving revision 1.38
diff -u -p -r1.38 tun.4
--- tun.4       23 Sep 2010 01:24:32 -0000      1.38
+++ tun.4       25 Mar 2011 21:21:57 -0000
@@ -36,7 +36,10 @@
 .Cd "pseudo-device tun"
 .Pp
 .Fd #include <sys/types.h>
+.Fd #include <sys/socket.h>
+.Fd #include <net/if.h>
 .Fd #include <net/if_tun.h>
+.Fd #include <net/if_types.h>
 .Sh DESCRIPTION
 The
 .Nm

Reply via email to