From 392966bb6f5d3184e82ababaad493787ea3fac43 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Wed, 26 Jun 2019 10:03:07 +0200 Subject: [PATCH] Fixerror: flexible array member 'cmsghdr::__cmsg_data' not at end of 'struct MMReceiver' --- pdns/dnsdist.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdns/dnsdist.cc b/pdns/dnsdist.cc index dddcb79d8..2f46920cc 100644 --- a/pdns/dnsdist.cc +++ b/pdns/dnsdist.cc @@ -1618,11 +1618,11 @@ static void MultipleMessagesUDPClientThread(ClientState* cs, LocalHolders& holde struct MMReceiver { char packet[4096]; - /* used by HarvestDestinationAddress */ - cmsgbuf_aligned cbuf; ComboAddress remote; ComboAddress dest; struct iovec iov; + /* used by HarvestDestinationAddress */ + cmsgbuf_aligned cbuf; }; const size_t vectSize = g_udpVectorSize; /* the actual buffer is larger because: -- 2.40.0