From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1026 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: linux/if_ether.h: struct ethhdr previously defined in netinet/if_ether.h Date: Fri, 8 Jun 2012 18:19:29 -0400 Message-ID: <20120608221929.GV163@brightrain.aerifal.cx> References: <20120609030449.1013330b@sibserver.ru> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1339194270 870 80.91.229.3 (8 Jun 2012 22:24:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 8 Jun 2012 22:24:30 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-1027-gllmg-musl=m.gmane.org@lists.openwall.com Sat Jun 09 00:24:28 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Sd7bA-0003Z9-Vv for gllmg-musl@plane.gmane.org; Sat, 09 Jun 2012 00:24:06 +0200 Original-Received: (qmail 3419 invoked by uid 550); 8 Jun 2012 22:24:04 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 3411 invoked from network); 8 Jun 2012 22:24:04 -0000 Content-Disposition: inline In-Reply-To: <20120609030449.1013330b@sibserver.ru> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:1026 Archived-At: On Sat, Jun 09, 2012 at 03:04:49AM +0800, orc wrote: > Getting this when compiling tinc-1.0.18: > > In file included from /usr/include/linux/if_tun.h:20, > from device.c:24: > /usr/include/linux/if_ether.h:126: error: redefinition of 'struct ethhdr' > make[2]: *** [device.o] Error 1 > > Commenting struct ethhdr definition in netinet/if_ether.h solves the > problem. I'm not sure how this stuff is intended to work with other libcs, but generally it's an error to be including both kernel headers and userspace headers that involve the same stuff in the same source file... And it's probably bad design to be including linux/*.h at all... Rich