Re: more on kde4 build

Benjamin Reed <[email protected]> Sun, 13 Nov 2005 22:23:30 -0500
Newsgroups gmane.comp.kde.darwin
Message-ID <[email protected]>
On 11/13/05, [email protected] <[email protected]> wrote:


> However there are macros in mman.h that require types.h, at least that's =
the
> case on panther; so the compile fails and HAVE_SYS_MMAN_H is not defined.
> This is the same problem with net/if.h. So i added sys/types.h to the arr=
ay
> passed to conf.CheckHeader( ... )
>
>     113         content +=3D define_line(header_define,
>     114                         conf.CheckHeader(["sys/types.h",header]))
> ....
>     119
>     120     content +=3D define_line("HAVE_NET_IF_H",
> conf.CheckHeader(['sys/types.h','sys/socket.h','net/if.h']))
>
> This seems to do the trick on panther. It may seem a little overkill to h=
ave
> sys/types.h included for every header file check, but i don't think there=
 are
> any bad sideeffects.

ah, ok, those must have gotten cleaned up on tiger; I hadn't had a
chance to mess with building stuff on 10.3 much yet.

This seems like a reasonable solution, lots of things need
sys/types.h, and it shouldn't hurt anything....