Re: compile issues on Solaris

From: Date: Fri, 07 May 2004 18:59:27 +0000
Subject: Re: compile issues on Solaris
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-9707@lists.php.net to get a copy of this message
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/ sysadm@{acc,cs,math}.umu.se 070-3406400 ordf@acc

« previous php.internals (#9707) next »