On Fri, May 07, 2004 at 02:00:31PM +0100, Wez Furlong wrote:
> This is a known issue (search bugs.php.net).
> 
> Unfortunately, the workaround you (and the others) suggest will cause a
> similar problem on Linux systems :-/
> 
> We need to find a way to set those _XOPEN_SOURCE style defines up so that
> the build succeeds on your system.  However, I don't have access to any
> Solaris boxen  so I can't get stuck in to fix it.

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 :) 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.

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)

/ Daniel Fahlgren

-- 
I live the way I type; fast, with a lot of mistakes

Daniel Fahlgren             http://www.acc.umu.se/~guru/
[EMAIL PROTECTED],cs,math}.umu.se 070-3406400         [EMAIL PROTECTED]

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

Reply via email to