s3-build: only include libnscd.h where needed.
authorGünther Deschner <gd@samba.org>
Wed, 18 Aug 2010 16:36:18 +0000 (18:36 +0200)
committerGünther Deschner <gd@samba.org>
Wed, 25 Aug 2010 22:20:29 +0000 (00:20 +0200)
Guenther

source3/include/includes.h
source3/lib/util_nscd.c

index 1801a629dbf44372062e320dd0f5a921e7d3bc73..ab828c05c6df684265c489477ec389c980c7c2a2 100644 (file)
@@ -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);
index 4feab3b8ace4c70825fae6ad9049b2dc42f117eb..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