diff options
author | Günther Deschner <gd@samba.org> | 2010-08-18 18:36:18 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-08-26 00:20:29 +0200 |
commit | c8f811034288e45b762b51b8cfb66b021a32f5bd (patch) | |
tree | e92f0a4be68a4689c65416840ba11986f087039e /source3 | |
parent | 184339825dc2d27e5c9f0b66c413042b596c6375 (diff) | |
download | samba-c8f811034288e45b762b51b8cfb66b021a32f5bd.tar.gz samba-c8f811034288e45b762b51b8cfb66b021a32f5bd.tar.bz2 samba-c8f811034288e45b762b51b8cfb66b021a32f5bd.zip |
s3-build: only include libnscd.h where needed.
Guenther
Diffstat (limited to 'source3')
-rw-r--r-- | source3/include/includes.h | 4 | ||||
-rw-r--r-- | source3/lib/util_nscd.c | 4 |
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 |