summaryrefslogtreecommitdiff
path: root/ext/standard/microtime.c
diff options
context:
space:
mode:
authorHartmut Holzgraefe <hholzgra@php.net>2000-05-27 19:27:20 +0000
committerHartmut Holzgraefe <hholzgra@php.net>2000-05-27 19:27:20 +0000
commitfb39eda0d80f0b45cbdf17c9b898298f90f4812b (patch)
treeab06cab4b0a4e2e433daad1be9fd5f3aa28973aa /ext/standard/microtime.c
parentafccb5861212d0931fcf61ef8f4e4141700025f2 (diff)
downloadphp-git-fb39eda0d80f0b45cbdf17c9b898298f90f4812b.tar.gz
a second (cleaner?) try on warnings about unsupported functions
Diffstat (limited to 'ext/standard/microtime.c')
-rw-r--r--ext/standard/microtime.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/standard/microtime.c b/ext/standard/microtime.c
index 6fe9d18c3b..ef7600d36a 100644
--- a/ext/standard/microtime.c
+++ b/ext/standard/microtime.c
@@ -89,11 +89,11 @@ PHP_FUNCTION(gettimeofday)
}
/* }}} */
+#ifdef HAVE_GETRUSAGE
/* {{{ proto array getrusage([int who])
Returns an array of usage statistics */
PHP_FUNCTION(getrusage)
{
-#ifdef HAVE_GETRUSAGE
struct rusage usg;
int ac = ARG_COUNT(ht);
pval **pwho;
@@ -133,10 +133,8 @@ PHP_FUNCTION(getrusage)
PHP_RUSAGE_PARA(ru_stime.tv_usec);
PHP_RUSAGE_PARA(ru_stime.tv_sec);
#undef PHP_RUSAGE_PARA
-#else
- PHP_NOT_IN_THIS_BUILD();
-#endif /* HAVE_GETRUSAGE */
}
+#endif /* HAVE_GETRUSAGE */
/* }}} */