Jason McIntyre wrote on Sun, Jul 05, 2009 at 09:52:13PM +0100: > On Sun, Jul 05, 2009 at 10:19:14PM +0200, Mark Kettenis wrote:
>> So I think the man pages should be amended to #include <sys/types.h>. > pages (plural)? there are more than this one to fix? Indeed, *two* need a fix, whereas login_cap(3) is already fine. Even though the functions documented in authenticate(3) do not directly use quad_t, size_t or uid_t, that's irrelevant, you always need to include <sys/types.h> before including <login_cap.h> or <bsd_auth.h>. > so, in summary, once we are out of lock, can someone please fix this. Yes. Index: authenticate.3 =================================================================== RCS file: /cvs/src/lib/libc/gen/authenticate.3,v retrieving revision 1.11 diff -u -p -r1.11 authenticate.3 --- authenticate.3 4 Apr 2008 17:42:39 -0000 1.11 +++ authenticate.3 5 Jul 2009 21:18:07 -0000 @@ -46,6 +46,7 @@ .Nm auth_verify .Nd simplified interface to the BSD Authentication system .Sh SYNOPSIS +.Fd #include <sys/types.h> .Fd #include <login_cap.h> .Fd #include <bsd_auth.h> .Ft int Index: auth_subr.3 =================================================================== RCS file: /cvs/src/lib/libc/gen/auth_subr.3,v retrieving revision 1.18 diff -u -p -r1.18 auth_subr.3 --- auth_subr.3 4 Apr 2008 17:42:39 -0000 1.18 +++ auth_subr.3 5 Jul 2009 21:18:07 -0000 @@ -58,6 +58,7 @@ .Nm auth_setstate .Nd interface to the BSD Authentication system .Sh SYNOPSIS +.Fd #include <sys/types.h> .Fd #include <login_cap.h> .Fd #include <bsd_auth.h> .Ft auth_session_t *