summaryrefslogtreecommitdiff
path: root/source4/rpc_server
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2010-10-13 14:06:46 +0400
committerMatthieu Patou <mat@samba.org>2010-10-13 10:48:04 +0000
commitf81c8403807033023512fd83985124904b7f1505 (patch)
tree305855b6e1666ff99d6879357e31a17f97dcfd9e /source4/rpc_server
parent1229935aa91126130c25a7e24e9cb3e74f3a61f9 (diff)
downloadsamba-f81c8403807033023512fd83985124904b7f1505.tar.gz
samba-f81c8403807033023512fd83985124904b7f1505.tar.bz2
samba-f81c8403807033023512fd83985124904b7f1505.zip
s4 rpc_server: fix a build error on freebsd
Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Wed Oct 13 10:48:04 UTC 2010 on sn-devel-104
Diffstat (limited to 'source4/rpc_server')
-rw-r--r--source4/rpc_server/dcerpc_server.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/rpc_server/dcerpc_server.c b/source4/rpc_server/dcerpc_server.c
index 3064e2944b..dc3b9bcfd6 100644
--- a/source4/rpc_server/dcerpc_server.c
+++ b/source4/rpc_server/dcerpc_server.c
@@ -1455,6 +1455,15 @@ static void dcesrv_terminate_connection(struct dcesrv_connection *dce_conn, cons
stream_terminate_connection(srv_conn, reason);
}
+/* We need this include to be able to compile on some plateforms
+ * (ie. freebsd 7.2) as it seems that <sys/uio.h> is not included
+ * correctly.
+ * It has to be that deep because otherwise we have a conflict on
+ * const struct dcesrv_interface declaration.
+ * This is mostly due to socket_wrapper defining #define bind swrap_bind
+ * which conflict with the bind used before.
+ */
+#include "system/network.h"
struct dcesrv_sock_reply_state {
struct dcesrv_connection *dce_conn;