summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-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