summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-04-28 17:26:40 +0200
committerGünther Deschner <gd@samba.org>2011-04-29 12:19:04 +0200
commit12476223c6aa7473c55bcf529639eefce8450680 (patch)
tree678b93f94543e5b75216c5dd19b0dae985cbcf33 /source3
parentbc6f24e89f2dd6204209fc9bacc7bfa9c22d0a57 (diff)
downloadsamba-12476223c6aa7473c55bcf529639eefce8450680.tar.gz
samba-12476223c6aa7473c55bcf529639eefce8450680.tar.bz2
samba-12476223c6aa7473c55bcf529639eefce8450680.zip
s3-tsocket: only include ../lib/tsocket/tsocket.h where needed.
Guenther
Diffstat (limited to 'source3')
-rw-r--r--source3/include/includes.h1
-rw-r--r--source3/include/proto.h1
-rw-r--r--source3/lib/tldap.c1
-rw-r--r--source3/lib/util_tsock.c1
-rw-r--r--source3/rpc_client/rpc_transport_sock.c1
-rw-r--r--source3/rpc_server/rpc_ncacn_np.c1
-rw-r--r--source3/rpc_server/srv_pipe_hnd.c1
-rw-r--r--source3/smbd/process.c1
-rw-r--r--source3/smbd/service.c1
-rw-r--r--source3/smbd/sesssetup.c1
10 files changed, 9 insertions, 1 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h
index 014d1d44bd..6c1e0b4d4e 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -522,7 +522,6 @@ typedef char fstring[FSTRING_LEN];
#include "event.h"
#include "../lib/util/tevent_unix.h"
#include "../lib/util/tevent_ntstatus.h"
-#include "../lib/tsocket/tsocket.h"
#include "../lib/util/data_blob.h"
#include "../lib/util/time.h"
diff --git a/source3/include/proto.h b/source3/include/proto.h
index c9552d7554..b4a910917e 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -925,6 +925,7 @@ struct tevent_req *getaddrinfo_send(TALLOC_CTX *mem_ctx,
int getaddrinfo_recv(struct tevent_req *req, struct addrinfo **res);
int poll_one_fd(int fd, int events, int timeout, int *revents);
int poll_intr_one_fd(int fd, int events, int timeout, int *revents);
+struct tstream_context;
struct tevent_req *tstream_read_packet_send(TALLOC_CTX *mem_ctx,
struct tevent_context *ev,
struct tstream_context *stream,
diff --git a/source3/lib/tldap.c b/source3/lib/tldap.c
index cd1dea52ba..b5be3a8e24 100644
--- a/source3/lib/tldap.c
+++ b/source3/lib/tldap.c
@@ -20,6 +20,7 @@
#include "includes.h"
#include "tldap.h"
#include "../lib/util/asn1.h"
+#include "../lib/tsocket/tsocket.h"
static int tldap_simple_recv(struct tevent_req *req);
diff --git a/source3/lib/util_tsock.c b/source3/lib/util_tsock.c
index 1cb88c67bd..dce2092868 100644
--- a/source3/lib/util_tsock.c
+++ b/source3/lib/util_tsock.c
@@ -18,6 +18,7 @@
*/
#include "includes.h"
+#include "../lib/tsocket/tsocket.h"
struct tstream_read_packet_state {
struct tevent_context *ev;
diff --git a/source3/rpc_client/rpc_transport_sock.c b/source3/rpc_client/rpc_transport_sock.c
index 71f979c2af..1dd0132583 100644
--- a/source3/rpc_client/rpc_transport_sock.c
+++ b/source3/rpc_client/rpc_transport_sock.c
@@ -18,6 +18,7 @@
*/
#include "includes.h"
+#include "../lib/tsocket/tsocket.h"
#include "rpc_client/rpc_transport.h"
#include "../lib/async_req/async_sock.h"
diff --git a/source3/rpc_server/rpc_ncacn_np.c b/source3/rpc_server/rpc_ncacn_np.c
index e89a366f9e..bd75178857 100644
--- a/source3/rpc_server/rpc_ncacn_np.c
+++ b/source3/rpc_server/rpc_ncacn_np.c
@@ -31,6 +31,7 @@
#include "../auth/auth_sam_reply.h"
#include "auth.h"
#include "ntdomain.h"
+#include "../lib/tsocket/tsocket.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_RPC_SRV
diff --git a/source3/rpc_server/srv_pipe_hnd.c b/source3/rpc_server/srv_pipe_hnd.c
index 5252598726..11689672d6 100644
--- a/source3/rpc_server/srv_pipe_hnd.c
+++ b/source3/rpc_server/srv_pipe_hnd.c
@@ -29,6 +29,7 @@
#include "rpc_dce.h"
#include "rpc_server/rpc_ncacn_np.h"
#include "ntdomain.h"
+#include "../lib/tsocket/tsocket.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_RPC_SRV
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index 248b3e403d..10632696c7 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -19,6 +19,7 @@
*/
#include "includes.h"
+#include "../lib/tsocket/tsocket.h"
#include "system/filesys.h"
#include "smbd/smbd.h"
#include "smbd/globals.h"
diff --git a/source3/smbd/service.c b/source3/smbd/service.c
index b29713d21d..5ab612a20b 100644
--- a/source3/smbd/service.c
+++ b/source3/smbd/service.c
@@ -19,6 +19,7 @@
#include "includes.h"
#include "system/filesys.h"
+#include "../lib/tsocket/tsocket.h"
#include "smbd/smbd.h"
#include "smbd/globals.h"
#include "../librpc/gen_ndr/netlogon.h"
diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c
index 3cf6758e29..3631d589f5 100644
--- a/source3/smbd/sesssetup.c
+++ b/source3/smbd/sesssetup.c
@@ -23,6 +23,7 @@
*/
#include "includes.h"
+#include "../lib/tsocket/tsocket.h"
#include "smbd/smbd.h"
#include "smbd/globals.h"
#include "../libcli/auth/spnego.h"