From: Wez Furlong Date: Fri, 28 May 2004 13:25:51 +0000 (+0000) Subject: Hopefully resolve proc_open build issues. X-Git-Tag: php-5.0.0RC3RC2~79 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=54bbe548fe17030737d0cfe96f98ed356c5e78da;p=php Hopefully resolve proc_open build issues. If we need anything more elaborate than this, then we can move to a configure time check as Sascha suggests. --- diff --git a/ext/standard/proc_open.c b/ext/standard/proc_open.c index 833ef9067f..acf417163a 100644 --- a/ext/standard/proc_open.c +++ b/ext/standard/proc_open.c @@ -17,10 +17,12 @@ */ /* $Id$ */ -#define _XOPEN_SOURCE 500 -#define __EXTENSIONS__ 1 -#define _BSD_SOURCE -#define _OSF_SOURCE +#if defined(__linux__) || defined(sun) || defined(__IRIX__) +# define _BSD_SOURCE /* linux wants this when XOPEN mode is on */ +# define _BSD_COMPAT /* irix: uint */ +# define _XOPEN_SOURCE 500 /* turn on Unix98 */ +# define __EXTENSIONS__ 1 /* Solaris: uint */ +#endif #include "php.h" #include