lib/util: Standardize use of st_[acm]time ns
[samba.git] / source3 / lib / util_nscd.c
index f019bdd70bfa8a707c4156376ed5a484006f4b00..6002f1480028e487781331f9a007b021f1ef846a 100644 (file)
 
 #include "includes.h"
 
+#ifdef HAVE_LIBNSCD
+#include <libnscd.h>
+#endif
+
 static void smb_nscd_flush_cache(const char *service)
 {
 #ifdef HAVE_NSCD_FLUSH_CACHE
-       if (!nscd_flush_cache(service)) {
+       if (nscd_flush_cache(service)) {
                DEBUG(10,("failed to flush nscd cache for '%s' service: %s. "
                          "Is nscd running?\n",
                          service, strerror(errno)));