wez Fri May 28 09:25:51 2004 EDT
Modified files:
/php-src/ext/standard proc_open.c
Log:
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.
http://cvs.php.net/diff.php/php-src/ext/standard/proc_open.c?r1=1.24&r2=1.25&ty=u
Index: php-src/ext/standard/proc_open.c
diff -u php-src/ext/standard/proc_open.c:1.24 php-src/ext/standard/proc_open.c:1.25
--- php-src/ext/standard/proc_open.c:1.24 Wed May 26 10:55:32 2004
+++ php-src/ext/standard/proc_open.c Fri May 28 09:25:51 2004
@@ -15,12 +15,14 @@
| Author: Wez Furlong <[EMAIL PROTECTED]> |
+----------------------------------------------------------------------+
*/
-/* $Id: proc_open.c,v 1.24 2004/05/26 14:55:32 wez Exp $ */
+/* $Id: proc_open.c,v 1.25 2004/05/28 13:25:51 wez Exp $ */
-#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 <stdio.h>
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php