diff --git a/ChangeLog b/ChangeLog index c4405a3f..7bc847c0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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. diff --git a/libmisc/audit_help.c b/libmisc/audit_help.c index 21a26cc5..e13fe233 100644 --- a/libmisc/audit_help.c +++ b/libmisc/audit_help.c @@ -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 */