sys/cdefs.h not included automatically

Carlos A. M. dos Santos unixmania at gmail.com
Tue Aug 4 05:26:36 UTC 2009


On Mon, Aug 3, 2009 at 4:56 PM, Alex Zimnitsky<aavzz at yandex.ru> wrote:
> Hello, freebsd-hackers
>
> my system is 7.2-RELEASE
>
> there is a <sys/cdefs.h> 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.


More information about the freebsd-hackers mailing list