1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

disable unused members in struct rusage

This commit is contained in:
Anatol Belski
2015-05-20 18:44:58 +02:00
parent b081da657e
commit 5dc7db8ee7
2 changed files with 8 additions and 5 deletions

View File

@@ -72,4 +72,5 @@ PHPAPI int getrusage(int who, struct rusage *usage)
} else {
return -1;
}
}
}

View File

@@ -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
#endif