From: nekral-guest Date: Sat, 30 Aug 2008 18:33:13 +0000 (+0000) Subject: * lib/nscd.c: Make sure the file is not empty when configured X-Git-Tag: 4.1.3~237 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de11907053e4c78dcfee60002ee68914a03203a0;p=thirdparty%2Fshadow.git * lib/nscd.c: Make sure the file is not empty when configured without nscd support. --- diff --git a/ChangeLog b/ChangeLog index 56e984c4c..1dc1e8086 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 5f54b722a..f87267067 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 */