From bb8af029789fd97f991f01e18c844fb40e23239f Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Tue, 1 Jan 2008 14:20:36 +0000 Subject: [PATCH] Avoid empty file when WITH_AUDIT is not set. --- ChangeLog | 1 + libmisc/audit_help.c | 2 ++ 2 files changed, 3 insertions(+) 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 */ -- 2.40.0