From de11907053e4c78dcfee60002ee68914a03203a0 Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Sat, 30 Aug 2008 18:33:13 +0000 Subject: [PATCH] * lib/nscd.c: Make sure the file is not empty when configured without nscd support. --- ChangeLog | 5 +++++ lib/nscd.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 56e984c4..1dc1e808 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-08-27 Nicolas François + + * lib/nscd.c: Make sure the file is not empty when configured + without nscd support. + 2008-08-27 Nicolas François * configure.in: Remove the USE_NSCD AM_CONDITIONAL (USE_NSCD is diff --git a/lib/nscd.c b/lib/nscd.c index 5f54b722..f8726706 100644 --- a/lib/nscd.c +++ b/lib/nscd.c @@ -57,5 +57,7 @@ int nscd_flush_cache (const char *service) return 0; } -#endif +#else /* USE_NSCD */ +extern int errno; /* warning: ANSI C forbids an empty source file */ +#endif /* USE_NSCD */