From owner-freebsd-hackers Tue May 7 9:20:56 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from gate.nentec.de (gate2.nentec.de [194.25.215.66]) by hub.freebsd.org (Postfix) with ESMTP id 6B1FA37B403 for ; Tue, 7 May 2002 09:20:44 -0700 (PDT) Received: from nenny.nentec.de (root@nenny.nentec.de [153.92.64.1]) by gate.nentec.de (8.11.3/8.9.3) with ESMTP id g47GKgl25846; Tue, 7 May 2002 18:20:42 +0200 Received: from nentec.de (andromeda.nentec.de [153.92.64.34]) by nenny.nentec.de (8.11.3/8.11.3/SuSE Linux 8.11.1-0.5) with ESMTP id g47GKqZ14654; Tue, 7 May 2002 18:20:52 +0200 Message-ID: <3CD7FEE4.3090709@nentec.de> Date: Tue, 07 May 2002 18:20:52 +0200 From: Andy Sporner User-Agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:0.9.8) Gecko/20020204 X-Accept-Language: de-at, de, en, en-us MIME-Version: 1.0 To: aaron Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: /usr/include/netinet/in.h References: <200205071814.46995.aaron@lo-res.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS-perl11-milter (http://amavis.org/) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG aaron wrote: Hi, Maybe it's just me, but I always include the fundamental .h files first, so usually in this order (more or less): #include #include ... (networking stuff) #include #include So perhaps this is why I never saw this. It is a simple philosophy and so far hasn't caused me any trouble. :-) Not sure how it works in the Windoze environment, but then again... Not interested ;-) Hope this helps... Andy >Hi! > >I am just trying to write a simple IPv6 socket app. >after #including I noticed that I have to include >BEFORE which struck me as rather strange... > >Should not .h files include the depending .h files themselves so that all >dependencies of type / struct / #define definitions are met automatically? > >If not this is not what we want then we have the following problem: > >#include >#include > > works > >but > >#include >#include > >does not work. > >... hm... wondering if this what we want.... > >aaron. > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-hackers" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message