From owner-freebsd-questions Tue Jan 9 21:49:28 2001 Delivered-To: freebsd-questions@freebsd.org Received: from gecko.eric.net.au (gecko.eric.net.au [203.102.228.3]) by hub.freebsd.org (Postfix) with ESMTP id 46A7D37B404 for ; Tue, 9 Jan 2001 21:49:10 -0800 (PST) Received: (from ghcrompton@localhost) by gecko.eric.net.au (8.9.3/8.8.7) id QAA31867; Wed, 10 Jan 2001 16:50:44 +1100 Date: Wed, 10 Jan 2001 16:50:43 +1100 From: "Geoffrey Crompton (RMIT Guest)" To: Matthew Emmerton Cc: FreeBSD-Questions Subject: Re: programming in freebsd related questions Message-ID: <20010110165043.A31845@gecko.eric.net.au> References: <20010110121911.A29635@gecko.eric.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3us In-Reply-To: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Jan 09, 2001 at 08:25:38PM -0500, Matthew Emmerton wrote: > On Wed, 10 Jan 2001, Geoffrey Crompton (RMIT Guest) wrote: > > > When I #include things like sys/socket.h and netinet/in.h, I get heaps > > of compiler errors, unless I do a #include before I #include > > the others. Why is that? > > Because that's the way it is. defines many things that are > used by other header files, such as and , so > you have to include it first, as you've found out. Depending on your > program, you may need to include _instead of_ > . (You can't include both.) Is there a design reason for why those files (, ) don't #include ? Or is that just that way it is? Does define a superset of what is defined in ? Thanks, Geoff Crompton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message