typedef struct acct_v3 struct_acct;
#define HAVE_AC_EXITCODE
+#define HAVE_AC_FLT
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
, stdout);
}
if (usages) {
- fputs(" user time sys time elap time minflt maxflt",
- stdout);
+ fputs(" user time sys time elap time "
+#ifdef HAVE_AC_FLT
+ " minflt maxflt"
+#endif
+ , stdout);
}
putchar('\n');
checkstdout();
#endif /*HAVE_AC_EXITCODE*/
if (usages) {
- printf(" %10lu %10lu %10lu %8ld %8ld",
+ printf(" %10lu %10lu %10lu",
(unsigned long)as->ac_utime,
(unsigned long)as->ac_stime,
- (unsigned long)as->ac_etime,
+ (unsigned long)as->ac_etime);
+#ifdef HAVE_AC_FLT
+ printf(" %8lu %8lu",
(unsigned long)as->ac_minflt,
(unsigned long)as->ac_majflt);
+#endif
}
putchar('\n');
* Use different struct acct, and different headers, on different
platforms.
* Tolerate lack of ac_exitcode.
+ * Tolerate lack of ac_minflt and ac_majflt (and use %lu as is right).
--