summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-08-18 18:36:18 +0200
committerGünther Deschner <gd@samba.org>2010-08-26 00:20:29 +0200
commitc8f811034288e45b762b51b8cfb66b021a32f5bd (patch)
treee92f0a4be68a4689c65416840ba11986f087039e
parent184339825dc2d27e5c9f0b66c413042b596c6375 (diff)
downloadsamba-c8f811034288e45b762b51b8cfb66b021a32f5bd.tar.gz
samba-c8f811034288e45b762b51b8cfb66b021a32f5bd.tar.bz2
samba-c8f811034288e45b762b51b8cfb66b021a32f5bd.zip
s3-build: only include libnscd.h where needed.
Guenther
-rw-r--r--source3/include/includes.h4
-rw-r--r--source3/lib/util_nscd.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h
index 1801a629db..ab828c05c6 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -907,10 +907,6 @@ void exit_server(const char *const reason) _NORETURN_;
void exit_server_cleanly(const char *const reason) _NORETURN_;
void exit_server_fault(void) _NORETURN_;
-#ifdef HAVE_LIBNSCD
-#include "libnscd.h"
-#endif
-
#if defined(HAVE_IPV6)
void in6_addr_to_sockaddr_storage(struct sockaddr_storage *ss,
struct in6_addr ip);
diff --git a/source3/lib/util_nscd.c b/source3/lib/util_nscd.c
index 4feab3b8ac..6002f14800 100644
--- a/source3/lib/util_nscd.c
+++ b/source3/lib/util_nscd.c
@@ -19,6 +19,10 @@
#include "includes.h"
+#ifdef HAVE_LIBNSCD
+#include <libnscd.h>
+#endif
+
static void smb_nscd_flush_cache(const char *service)
{
#ifdef HAVE_NSCD_FLUSH_CACHE