diff options
author | Stig Bakken <ssb@php.net> | 2000-02-23 21:37:43 +0000 |
---|---|---|
committer | Stig Bakken <ssb@php.net> | 2000-02-23 21:37:43 +0000 |
commit | b275477b76c8040eadbec8ce866f8b9e53fea1b6 (patch) | |
tree | 13a33a6a458f463363c15119f80fe9ce79640122 /ext/standard/microtime.c | |
parent | 4eae85673a9cf6739490bc5c8d19acbf39dd1cf3 (diff) | |
download | php-git-b275477b76c8040eadbec8ce866f8b9e53fea1b6.tar.gz |
(PHP getrusage) don't define this function at all if the getrusage() function
is not available on the system.
Diffstat (limited to 'ext/standard/microtime.c')
-rw-r--r-- | ext/standard/microtime.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/standard/microtime.c b/ext/standard/microtime.c index 360a0780df..205c832d03 100644 --- a/ext/standard/microtime.c +++ b/ext/standard/microtime.c @@ -90,11 +90,11 @@ PHP_FUNCTION(gettimeofday) } /* }}} */ +#ifdef HAVE_GETRUSAGE /* {{{ proto array getrusage([ int who ]) returns an array of usage statistics */ PHP_FUNCTION(getrusage) { -#if HAVE_GETRUSAGE struct rusage usg; int ac = ARG_COUNT(ht); pval **pwho; @@ -134,8 +134,9 @@ PHP_FUNCTION(getrusage) PHP3_RUSAGE_PARA(ru_stime.tv_usec); PHP3_RUSAGE_PARA(ru_stime.tv_sec); #undef PHP3_RUSAGE_PARA -#endif /* HAVE_GETRUSAGE */ } +#endif /* HAVE_GETRUSAGE */ + /* }}} */ |