From owner-freebsd-bugs Fri Dec 8 13:52: 1 2000 From owner-freebsd-bugs@FreeBSD.ORG Fri Dec 8 13:51:59 2000 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by hub.freebsd.org (Postfix) with ESMTP id BC13037B6A2 for ; Fri, 8 Dec 2000 13:51:57 -0800 (PST) Received: from localhost (marck@localhost) by woozle.rinet.ru (8.9.3/8.9.1) with ESMTP id AAA28583; Sat, 9 Dec 2000 00:51:43 +0300 (MSK) Date: Sat, 9 Dec 2000 00:51:42 +0300 (MSK) From: Dmitry Morozovsky To: Jonathan Lemon Cc: bugs@freebsd.org Subject: Re: FreeBSD-stable (4.x). netinet/in.h In-Reply-To: <200012081955.eB8JtVr89597@prism.flugsvamp.com> Message-ID: X-NCC-RegID: ru.rinet MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, 8 Dec 2000, Jonathan Lemon wrote: JL> >I found that before including netinet/in.h developer _must_ include JL> >sys/types.h before, or your source is not compilable. Is it JL> >intentional? :) JL> JL> In general yes; the caller is expected to #include the appropriate JL> prerequisite files. Otherwise every .h file in the kernel would be JL> includeing , , and the like. I suppose the overhead to be very small -- every header contains appropriate #ifdef/#define pair... Of course, this is mainly design issue, not really a bug ;) Sincerely, D.Marck [DM5020, DM268-RIPE, DM3-RIPN] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message