This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Why include header file <sys/_types.h> in <stddef.h> for FreeBSD >= 5 ?


On Thu, May 2, 2013 at 3:32 AM, Zachary Jude <zacharyjude@gmail.com> wrote:
>
> I'm figuring out the code in
>
> /usr/lib/gcc/x86_64-redhat-linux/4.1.1/include/stddef.h,
>
> and I saw the macro switch below:
>
> #if defined (__FreeBSD__) && (__FreeBSD__ >= 5)
> #include <sys/_types.h>
> #endif
>
> I have gone through all the <sys/_types>ã<sys/cdefs.h> and
> <i386/include/_types.h> source files for the whole 5.X.X version of
> FreeBSD, and still can't find anything may affect the behavior of code
> below that macro switch in <stddef.h>.
>
> Can someone please help in figuring out this ?

I'm sure you are aware that 4.1.1 is quite old at this point.

That code was added by this patch:
http://gcc.gnu.org/ml/gcc-patches/2002-10/msg00003.html .  Perhaps
that will help explain what is going on here.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]