From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40237) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZC7Q-0007tu-Uu for qemu-devel@nongnu.org; Mon, 15 Aug 2016 03:15:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bZC7L-0001UU-NL for qemu-devel@nongnu.org; Mon, 15 Aug 2016 03:15:31 -0400 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:36764) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZC7L-0001UO-FU for qemu-devel@nongnu.org; Mon, 15 Aug 2016 03:15:27 -0400 Received: by mail-wm0-x243.google.com with SMTP id i138so9568276wmf.3 for ; Mon, 15 Aug 2016 00:15:27 -0700 (PDT) Sender: Paolo Bonzini References: <20160815004635.29411.18764.malonedeb@gac.canonical.com> <596e3698-47dc-949d-0cb5-78864e8d1d8c@redhat.com> From: Paolo Bonzini Message-ID: <1656ee88-dda9-2158-c128-9d13e403e1e1@redhat.com> Date: Mon, 15 Aug 2016 09:15:20 +0200 MIME-Version: 1.0 In-Reply-To: <596e3698-47dc-949d-0cb5-78864e8d1d8c@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Bug 1613133] [NEW] SLIRP code regression fails to build on OpenBSD List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thomas Huth , Bug 1613133 <1613133@bugs.launchpad.net>, qemu-devel@nongnu.org Cc: Samuel Thibault On 15/08/2016 08:53, Thomas Huth wrote: > On 15.08.2016 02:46, Brad Smith wrote: >> Public bug reported: >> >> The SLIRP code has regressed between 2.6 and 2.7 and now fails to build >> on OpenBSD. > [...] >> In file included from /usr/include/net/if.h:454:0, >> from slirp/slirp.c:34: >> /usr/include/net/if_arp.h:47:8: error: redefinition of 'struct arphdr' >> struct arphdr { >> ^ >> In file included from slirp/slirp.c:29:0: >> slirp/slirp.h:108:8: note: originally defined here >> struct arphdr { >> ^ > > Does it work again if you change the > > #ifndef _WIN32 > #include > #endif > > into > > #if !defined(_WIN32) && !defined(__OpenBSD__) > #include > #endif > > at the beginning of slirp/slirp.c ? > > Can the struct be renamed to struct slirp_arphdr instead? Paolo