]> granicus.if.org Git - shadow/commitdiff
Avoid empty file when WITH_AUDIT is not set.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Tue, 1 Jan 2008 14:20:36 +0000 (14:20 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Tue, 1 Jan 2008 14:20:36 +0000 (14:20 +0000)
ChangeLog
libmisc/audit_help.c

index c4405a3f9209a5689bfacd1674b983cd74b54afa..7bc847c01974500ed77f60b17ef8157a81da1603 100644 (file)
--- 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.
 
index 21a26cc5f8acece9afbbd82b52316520edef4cec..e13fe23359dfe996306615f5ee55e2bb4032bcea 100644 (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 */