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 */