summaryrefslogtreecommitdiff
path: root/ext/standard/microtime.h
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2002-10-29 23:35:49 +0000
committerMarcus Boerger <helly@php.net>2002-10-29 23:35:49 +0000
commit6f8bfd148aeb387b9de3df0d4f36ba522236d941 (patch)
treee6062711b920ffb7c7006ba9a8405c7d2e8fb2bb /ext/standard/microtime.h
parenta24534a1ed1a38024fba0c5fe5374effb7432d0b (diff)
downloadphp-git-6f8bfd148aeb387b9de3df0d4f36ba522236d941.tar.gz
make microtime and gettimeofday unavailable instead of return false return
false in case needed library function is unavailable.
Diffstat (limited to 'ext/standard/microtime.h')
-rw-r--r--ext/standard/microtime.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/standard/microtime.h b/ext/standard/microtime.h
index 9ce3825104..a2d1d242c9 100644
--- a/ext/standard/microtime.h
+++ b/ext/standard/microtime.h
@@ -21,8 +21,12 @@
#ifndef MICROTIME_H
#define MICROTIME_H
+#ifdef HAVE_GETTIMEOFDAY
PHP_FUNCTION(microtime);
PHP_FUNCTION(gettimeofday);
+#endif
+#ifdef HAVE_GETRUSAGE
PHP_FUNCTION(getrusage);
+#endif
#endif /* MICROTIME_H */