Avoid empty file when WITH_AUDIT is not set.

This commit is contained in:
nekral-guest 2008-01-01 14:20:36 +00:00
parent bca732693b
commit bb8af02978
2 changed files with 3 additions and 0 deletions

View File

@ -2,6 +2,7 @@
* libmisc/limits.c, libmisc/obscure.c, src/login_nopam.c,
lib/pwauth.c: Avoid empty file when USE_PAM is set.
* libmisc/audit_help.c: Avoid empty file when WITH_AUDIT is not set.
* src/login_nopam.c: Fix warnings: resolve_hostname takes and
returns a constant string.

View File

@ -78,4 +78,6 @@ void audit_logger (int type, const char *pgname, const char *op,
NULL, NULL, NULL, result);
}
#else /* WITH_AUDIT */
extern int errno; /* warning: ANSI C forbids an empty source file */
#endif /* WITH_AUDIT */