> Well. A simple solution that should keep the build on Linux 
> (and others)
> intact is
> 
> #ifdef __sun__
> #include<sys/types.h>
> #endif
> 
> Perhaps not the neatest one, but then it should compile on 
> Solaris using
> gcc.. Better then not compile at all :)

Better to do it the right way, which is why I haven't committed a
workaround; sooner or later someone is going to find the right way to do
it ;-)

> I guess the correct way is to
> let configure figure out if types.h is needed and not trust a define
> that might not exist in all compilers.

That won't work so easily as you might hope, because our configure
generated header stuff pulls in system headers, and we need to define
those magic _XOPEN_SOURCE defines before the system headers come in.
Nice bit of chicken and egg for us :)

It probably is possible, but it's a lot more work than just poking
around in the header files on the systems where it breaks and finding
out just what we're supposed to be doing.
 
> I could dig in and try to find another solution that works. If I'm
> feeling brave (and perhaps stupid) I can give it a try on Irix and AIX
> as well.. ;) (I haven't tried to compile on them at all)

Any help would be appreciated; essentially you need to find a way to get
ulong defined with the _XOPEN_SOURCE and _BSD_SOURCE symbols defined.

You might find that you need to specify a numeric value (the year or
revision number; I don't recall) for it to turn on certain parts of the
header.

Something like this:

#define _XOPEN_SOURCE 0x1000

Thanks for any insight you can provide on this,

--Wez.

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to