s4 rpc_server: fix a build error on freebsd
authorMatthieu Patou <mat@matws.net>
Wed, 13 Oct 2010 10:06:46 +0000 (14:06 +0400)
committerMatthieu Patou <mat@samba.org>
Wed, 13 Oct 2010 10:48:04 +0000 (10:48 +0000)
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Wed Oct 13 10:48:04 UTC 2010 on sn-devel-104

source4/rpc_server/dcerpc_server.c

index 3064e2944b496574545c1d36f701f9a54611278e..dc3b9bcfd6ac8fc15096ed3458c5e1d689c7900b 100644 (file)
@@ -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;