_XOPEN_SOURCE in proc_open.c (PHP5)

php.internals

Stanislav Malyshev

22 years ago
Wez, could you please explain what is the function of #define _XOPEN_SOURCE in ext/standard/proc_open.c? It breaks build (by preventing ulong and other types from being define) on some systems, like Solaris or NetBSD. Is it necessary?
-- Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115

Wez Furlong

22 years ago
I thought I had replied-to-all, but obviously not. If you don't define _XOPEN_SOURCE under linux, you see the very same breakage that you see under Solaris if you define it. Another fine mess... Magnus and myself have been and will be continuing our investigation of this stuff today. --Wez.