From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 4 05:26:36 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2D1FA106564A for ; Tue, 4 Aug 2009 05:26:36 +0000 (UTC) (envelope-from unixmania@gmail.com) Received: from mail-fx0-f210.google.com (mail-fx0-f210.google.com [209.85.220.210]) by mx1.freebsd.org (Postfix) with ESMTP id B4D958FC18 for ; Tue, 4 Aug 2009 05:26:35 +0000 (UTC) (envelope-from unixmania@gmail.com) Received: by fxm6 with SMTP id 6so1741643fxm.43 for ; Mon, 03 Aug 2009 22:26:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=lzSl0p5hC74DvyukIj6aeuaxx2ZgoEO2vm45zrScgn0=; b=He+Jku0v4BtjhVZO9Mq+hACryo6ttrf0DfYCEV7laDasJAQF6PygW+cCAkMeUullnu 0PepEE6IqJv40B27LoYxxl66PD4z/Mzb0Qz+5TMyDjeqZUQ33nKsV7Gv8ytwrIy/x/eB 2v6eXzmVuD2OcpoZzEj5pB4/MK2ZYA+cKkC04= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=H1TosC5UmxxJg5FjpCWciLzu20NO8/tQzIV/Z1TClxDEb8qtTW1y+kJdVVKHApqh+w lqY9wYBwegcSkL1pH9xFZRuhuYD7ORfic4abNrH4j0lfyGHkkxzawnsnS10/99xKbOxr CjrKeP2f32JVJyf2P+IP+RiILxSpyEes4AsNY= MIME-Version: 1.0 Received: by 10.239.160.84 with SMTP id b20mr619932hbd.149.1249363594604; Mon, 03 Aug 2009 22:26:34 -0700 (PDT) In-Reply-To: <1249329403.2928.11.camel@localhost.localdomain> References: <1249329403.2928.11.camel@localhost.localdomain> Date: Tue, 4 Aug 2009 02:26:34 -0300 Message-ID: From: "Carlos A. M. dos Santos" To: Alex Zimnitsky Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: sys/cdefs.h not included automatically X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Aug 2009 05:26:36 -0000 On Mon, Aug 3, 2009 at 4:56 PM, Alex Zimnitsky wrote: > Hello, freebsd-hackers > > my system is 7.2-RELEASE > > there is a which is included in a lot of headers, but a > few of them instead of including it, generate "#error this file needs > sys/cdefs.h". > > seems like an omission, but if it's intentional I'm curious why it is > so. Those files are not intended to be directly included by user programs. You usually include them indirectly. See, for instance, pthread.h and stddef.h. -- My preferred quotation of Robert Louis Stevenson is "You cannot make an omelette without breaking eggs". Not because I like the omelettes, but because I like the sound of eggs being broken.