summaryrefslogtreecommitdiff
path: root/win32/getrusage.h
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2015-05-20 18:44:58 +0200
committerAnatol Belski <ab@php.net>2015-05-20 19:14:02 +0200
commit5dc7db8ee7e331cb9ed849d59ac7af5c701fa99d (patch)
tree72d43060dc0f4814e4099bf2caff841ea1ad1457 /win32/getrusage.h
parentb081da657e4c334edce83e2548df00f502fb4a90 (diff)
downloadphp-git-5dc7db8ee7e331cb9ed849d59ac7af5c701fa99d.tar.gz
disable unused members in struct rusage
Diffstat (limited to 'win32/getrusage.h')
-rw-r--r--win32/getrusage.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/win32/getrusage.h b/win32/getrusage.h
index 5df67acf6f..8a6b9a7510 100644
--- a/win32/getrusage.h
+++ b/win32/getrusage.h
@@ -70,6 +70,9 @@ struct rusage
/* Integral max resident set size */
zend_long ru_maxrss;
+ /* Page faults */
+ zend_long ru_majflt;
+#if 0
/* Integral shared text memory size */
zend_long ru_ixrss;
@@ -82,9 +85,6 @@ struct rusage
/* Page reclaims */
zend_long ru_minflt;
- /* Page faults */
- zend_long ru_majflt;
-
/* Swaps */
zend_long ru_nswap;
@@ -108,8 +108,10 @@ struct rusage
/* Involuntary context switches */
zend_long ru_nivcsw;
+#endif
};
PHPAPI int getrusage(int who, struct rusage *usage);
-#endif \ No newline at end of file
+#endif
+