# _XOPEN_SOURCE in proc_open.c (PHP5)

- Thread: https://externals.io/message/10079
- Original archive: https://news-web.php.net/php.internals/10079
- Started by Stanislav Malyshev on 2004-05-25T10:57:28+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #10079 — Stanislav Malyshev — 2004-05-25T10:57:28+00:00

URL: https://externals.io/message/10079#10079

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

---

## #10080 — Wez Furlong — 2004-05-25T11:16:10+00:00

URL: https://externals.io/message/10079#10080 · In reply to: #10079

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.

> -----Original Message-----
> From: Stanislav Malyshev [mailto:stas@zend.com] 
> Sent: 25 May 2004 11:57
> To: PHP Development
> Cc: Wez Furlong
> Subject: [PHP-DEV] _XOPEN_SOURCE in proc_open.c (PHP5)
> 
> 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
