]> granicus.if.org Git - php/commitdiff
Simple patch to deal with lack of fields in the BeOS implementation of rusage.
authorStephen van Egmond <svanegmond@php.net>
Fri, 23 Mar 2001 04:36:29 +0000 (04:36 +0000)
committerStephen van Egmond <svanegmond@php.net>
Fri, 23 Mar 2001 04:36:29 +0000 (04:36 +0000)
ext/standard/microtime.c

index 6b5c247c2141d892508582d132ee3746ea6fc03f..442ae3d395db7d7dbbcc63973fa1fd15b4152abb 100644 (file)
@@ -116,7 +116,7 @@ PHP_FUNCTION(getrusage)
        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);