]> granicus.if.org Git - php/commitdiff
disable unused members in struct rusage
authorAnatol Belski <ab@php.net>
Wed, 20 May 2015 16:44:58 +0000 (18:44 +0200)
committerAnatol Belski <ab@php.net>
Wed, 20 May 2015 17:14:02 +0000 (19:14 +0200)
win32/getrusage.c
win32/getrusage.h

index 53861cb66fc2842caec9ffc208550c2632c2e37f..3edc53f11504a7330c4fac012cc7ff78b18865c0 100644 (file)
@@ -72,4 +72,5 @@ PHPAPI int getrusage(int who, struct rusage *usage)
        } else {
                return -1;
        }
-}
\ No newline at end of file
+}
+
index 5df67acf6f7bf3efb5e7ad4b32a546cfc5ae73e2..8a6b9a75105386af55673462ab497d1230b46d59 100644 (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
\ No newline at end of file
+#endif
+