svanegmond Thu Mar 22 20:36:29 2001 EDT
Modified files:
/php4/ext/standard microtime.c
Log:
Simple patch to deal with lack of fields in the BeOS implementation of rusage.
Index: php4/ext/standard/microtime.c
diff -u php4/ext/standard/microtime.c:1.29 php4/ext/standard/microtime.c:1.30
--- php4/ext/standard/microtime.c:1.29 Sun Feb 25 22:07:23 2001
+++ php4/ext/standard/microtime.c Thu Mar 22 20:36:29 2001
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: microtime.c,v 1.29 2001/02/26 06:07:23 andi Exp $ */
+/* $Id: microtime.c,v 1.30 2001/03/23 04:36:29 svanegmond Exp $ */
#include "php.h"
@@ -116,7 +116,7 @@
array_init(return_value);
#define PHP_RUSAGE_PARA(a) \
add_assoc_long(return_value, #a, usg.a)
-#ifndef _OSD_POSIX /* BS2000 has only a few fields in the rusage struct */
+#if !defined( _OSD_POSIX) && !defined(__BEOS__) /* BS2000 has only a few fields in
+the rusage struct */
PHP_RUSAGE_PARA(ru_oublock);
PHP_RUSAGE_PARA(ru_inblock);
PHP_RUSAGE_PARA(ru_msgsnd);
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]