lib/util: Standardize use of st_[acm]time ns
[samba.git] / source3 / lib / util_nscd.c
index 39886425dcabc1f609f4ac4cb299a1c75c84819c..6002f1480028e487781331f9a007b021f1ef846a 100644 (file)
    GNU General Public License for more details.
    
    You should have received a copy of the GNU General Public License
-   along with this program; if not, write to the Free Software
-   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
 #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)));