s3-build: only include nsswitch header where needed.
authorGünther Deschner <gd@samba.org>
Wed, 18 Aug 2010 10:42:49 +0000 (12:42 +0200)
committerGünther Deschner <gd@samba.org>
Wed, 25 Aug 2010 22:20:28 +0000 (00:20 +0200)
Guenther

nsswitch/wins.c
source3/auth/server_info_sam.c
source3/include/includes.h
source3/lib/system_smbd.c
source3/passdb/pdb_interface.c
source3/torture/nsstest.c
source3/torture/torture.c
source3/utils/ntlm_auth.c
source3/utils/ntlm_auth_diagnostics.c
source3/winbindd/idmap_nss.c
source3/winbindd/winbindd.c

index aa95ec7340956cbf70bd5d8a3a66da71042e1e76..b4bc788f841815865eebfb6560d561e9475011a0 100644 (file)
@@ -19,6 +19,8 @@
 */
 
 #include "includes.h"
+#include "nsswitch/winbind_nss.h"
+
 #ifdef HAVE_NS_API_H
 
 #include <ns_daemon.h>
index 7a33aab2a23f65db754c46acba38c5a1bdb816c8..4731ad44f1ada9d5dcb0fcdb4f1b861a3a4cddc5 100644 (file)
@@ -24,6 +24,7 @@
 #include "includes.h"
 #include "smbd/globals.h"
 #include "../libcli/auth/libcli_auth.h"
+#include "nsswitch/winbind_client.h"
 
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_AUTH
index 4392de9dafeeed83266e4ce0ad9613178bb49b05..d409a354a12f54b31e148088ca78bc1511bb67ce 100644 (file)
@@ -659,7 +659,6 @@ struct ntlmssp_state;
 #include "session.h"
 #include "mangle.h"
 #include "module.h"
-#include "nsswitch/winbind_client.h"
 #include "dbwrap.h"
 #include "packet.h"
 #include "ctdbd_conn.h"
@@ -671,8 +670,6 @@ struct ntlmssp_state;
 #include "../lib/util/smb_threads.h"
 #include "../lib/util/smb_threads_internal.h"
 
-#include "nsswitch/winbind_nss.h"
-
 /* forward declarations from smbldap.c */
 
 #include "smbldap.h"
index b4447c5f9cd179ee86fea87edfc0a761f0f79584..37fac27b73ae1d82d9044b4dd1a96c2c2154cb92 100644 (file)
@@ -24,6 +24,7 @@
 */
 
 #include "includes.h"
+#include "nsswitch/winbind_client.h"
 
 #ifndef HAVE_GETGROUPLIST
 
index 3c297b2300b3946bb4a05b2a94b6591a5429387c..ddc7ad4e0a33d06e828a5608854ac00e8ce3446a 100644 (file)
@@ -24,6 +24,7 @@
 #include "secrets.h"
 #include "../librpc/gen_ndr/samr.h"
 #include "memcache.h"
+#include "nsswitch/winbind_client.h"
 
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_PASSDB
index 8bb577e505429cdd164a31eaec6d850cd16f9f76..dcdfd1cb745f120c5323969b21912faeedaeb456 100644 (file)
@@ -19,6 +19,7 @@
 */
 
 #include "includes.h"
+#include "nsswitch/winbind_client.h"
 
 #ifdef malloc
 #undef malloc
index 2e35a1ff5da45dd77d8bea6e29a5e2501f0f8d54..fdff8a7d054c200f8cbc027bc7b5401b8eb05362 100644 (file)
@@ -26,6 +26,7 @@
 #include "tldap_util.h"
 #include "../librpc/gen_ndr/svcctl.h"
 #include "memcache.h"
+#include "nsswitch/winbind_client.h"
 
 extern char *optarg;
 extern int optind;
index d234a3cd05553f35f9f329cfca7592193a75d7b7..6fd9fa33ab992e0b17e52a6aa3c191d8fd7c8658 100644 (file)
@@ -33,6 +33,7 @@
 #include <iniparser.h>
 #include "../lib/crypto/arcfour.h"
 #include "libads/kerberos_proto.h"
+#include "nsswitch/winbind_client.h"
 
 #ifndef PAM_WINBIND_CONFIG_FILE
 #define PAM_WINBIND_CONFIG_FILE "/etc/security/pam_winbind.conf"
index 3ee4acdd83f1f6e0c31250d170654c2265fa8dce..1b9b133e4fb60c4421078ca139a1c2d30f01769e 100644 (file)
@@ -24,6 +24,7 @@
 #include "includes.h"
 #include "utils/ntlm_auth.h"
 #include "../libcli/auth/libcli_auth.h"
+#include "nsswitch/winbind_client.h"
 
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_WINBIND
index f50e6172baa117c0abb507205862a29db6773697..40adef29b852ca0868422b166399deb2eac3e6fc 100644 (file)
@@ -21,6 +21,7 @@
 
 #include "includes.h"
 #include "winbindd.h"
+#include "nsswitch/winbind_client.h"
 
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_IDMAP
index 3a9643d7299dc02549840a65b6d683c1882db627..966ebadaea04e49461ded8e321b48c5ce1dbb58d 100644 (file)
@@ -25,6 +25,7 @@
 #include "includes.h"
 #include "popt_common.h"
 #include "winbindd.h"
+#include "nsswitch/winbind_client.h"
 #include "../../nsswitch/libwbclient/wbc_async.h"
 #include "librpc/gen_ndr/messaging.h"
 #include "../librpc/gen_ndr/srv_lsa.h"