]> granicus.if.org Git - php/commitdiff
Hopefully resolve proc_open build issues.
authorWez Furlong <wez@php.net>
Fri, 28 May 2004 13:25:51 +0000 (13:25 +0000)
committerWez Furlong <wez@php.net>
Fri, 28 May 2004 13:25:51 +0000 (13:25 +0000)
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

index 833ef9067fb73d1709f584ae41889b5b5c3652d4..acf417163a2ce3987ae32e76caeca40e3056498f 100644 (file)
  */
 /* $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 <stdio.h>