com php-src: disable unused members in struct rusage: win32/getrusage.c win32/getrusage.h
| From: | Anatol Belski | Date: | Wed, 20 May 2015 17:14:02 +0000 |
| Subject: | com php-src: disable unused members in struct rusage: win32/getrusage.c win32/getrusage.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-86830@lists.php.net to get a copy of this message | ||
Commit: 5dc7db8ee7e331cb9ed849d59ac7af5c701fa99d
Author: Anatol Belski <ab@php.net> Wed, 20 May 2015 18:44:58 +0200
Parents: b081da657e4c334edce83e2548df00f502fb4a90
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=5dc7db8ee7e331cb9ed849d59ac7af5c701fa99d
Log:
disable unused members in struct rusage
Changed paths:
M win32/getrusage.c
M win32/getrusage.h
Diff:
diff --git a/win32/getrusage.c b/win32/getrusage.c
index 53861cb..3edc53f 100644
--- a/win32/getrusage.c
+++ b/win32/getrusage.c
@@ -72,4 +72,5 @@ PHPAPI int getrusage(int who, struct rusage *usage)
} else {
return -1;
}
-}
\ No newline at end of file
+}
+
diff --git a/win32/getrusage.h b/win32/getrusage.h
index 5df67ac..8a6b9a7 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
+