* configure.in, lib/nscd.h, lib/nscd.c: Added --with-nscd flag to

support systems without nscd.
This commit is contained in:
nekral-guest
2008-08-30 18:30:36 +00:00
parent b4899946ef
commit c59126a817
4 changed files with 21 additions and 2 deletions

View File

@@ -1,5 +1,8 @@
/* Author: Peter Vrabec <pvrabec@redhat.com> */
#include <config.h>
#ifdef USE_NSCD
/* because of TEMP_FAILURE_RETRY */
#define _GNU_SOURCE
@@ -54,4 +57,5 @@ int nscd_flush_cache (const char *service)
return 0;
}
#endif

View File

@@ -4,6 +4,10 @@
/*
* nscd_flush_cache - flush specified service buffer in nscd cache
*/
#ifdef USE_NSCD
extern int nscd_flush_cache (const char *service);
#else
#define nscd_flush_cache(service) (0)
#endif
#endif