On Fri, 28 May 2004, Wez Furlong wrote: > These are all needed in different combinations on different systems. > Don't you just love standards!?
It is extremely unwise to play with these flags, because there is nothing portable about them. Getting it right and making it work everywhere is basically impossible. I suggest you drop them from the source file and add them on a per-source base in configure.in depending on $host_alias. - Sascha > > --Wez. > > > > #define __EXTENSIONS__ > > > #define _ALL_SOURCE > > > #include <sys/types.h> > > > > > Yep, those defines are there, but If I add > > > > #define __BSD_VISIBLE 1 > > > > It works. > > > > > > I tracked it down that it broke for me at revision 1.21 (the pty > > support for proc_open), the macro #define _XOPEN_SOURCE 500 causes > > my system to change which POSIX version to compile with. > > > > If I take that _XOPEN_SOURCE line out it compiles fine. Is that > > #define needed? I have a strong feeling the __EXTENSIONS__ and > > _ALL_SOURCE macros could be remove as well. > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php