From 54bbe548fe17030737d0cfe96f98ed356c5e78da Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Fri, 28 May 2004 13:25:51 +0000 Subject: [PATCH] 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. --- ext/standard/proc_open.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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 -- 2.40.0