#include <stdio.h> when appropriate.

git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@566 185d5e19-27fe-0310-9dcf-9bff6b9f3609
This commit is contained in:
Dag-Erling Smørgrav 2012-04-05 14:30:41 +00:00
parent 03c07732a6
commit 1a3013376f

View file

@ -455,13 +455,17 @@ sub gendoc($) {
.Lb libpam .Lb libpam
.Sh SYNOPSIS .Sh SYNOPSIS
.In sys/types.h .In sys/types.h
.In security/pam_appl.h ";
if ($func->{'args'} =~ m/\bFILE \*\b/) {
$mdoc .= ".In stdio.h\n";
}
$mdoc .= ".In security/pam_appl.h
"; ";
if ($func->{'name'} =~ m/_sm_/) { if ($func->{'name'} =~ m/_sm_/) {
$mdoc .= ".In security/pam_modules.h\n" $mdoc .= ".In security/pam_modules.h\n";
} }
if ($func->{'name'} =~ m/openpam/) { if ($func->{'name'} =~ m/openpam/) {
$mdoc .= ".In security/openpam.h\n" $mdoc .= ".In security/openpam.h\n";
} }
$mdoc .= ".Ft \"$func->{'type'}\" $mdoc .= ".Ft \"$func->{'type'}\"
.Fn $func->{'name'} $func->{'args'} .Fn $func->{'name'} $func->{'args'}