From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mason Date: Tue, 5 Jan 2016 15:33:09 +0100 Subject: [Buildroot] package/linux-fusion: 'struct msghdr' has no member named 'msg_iov' In-Reply-To: <568BBD3F.2030607@free.fr> References: <568BBD3F.2030607@free.fr> Message-ID: <568BD425.4070502@free.fr> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net On 05/01/2016 13:55, Mason wrote: > The linux-fusion package fails to build with recent kernels. Using LWN's article as a reference, I came up with the following patch. Al, could you take a look, and see whether it looks correct? The iov_iter interface https://lwn.net/Articles/625077/ diff --git a/one/one_udp.c b/one/one_udp.c index 26b9e6a1f729..5d8bd605fa68 100644 --- a/one/one_udp.c +++ b/one/one_udp.c @@ -161,7 +161,7 @@ ksocket_send_iov( struct socket *sock, const struct iovec *iov, size_t iov_count ) { - struct msghdr msg; + struct msghdr msg = { addr, sizeof *addr }; mm_segment_t oldfs; int size = 0; size_t len = 0; @@ -178,18 +178,20 @@ ksocket_send_iov( struct socket *sock, for (i=0; i