67 lines
1.3 KiB
Diff
67 lines
1.3 KiB
Diff
--- common.c
|
|
+++ common.c
|
|
@@ -28,7 +28,7 @@
|
|
#include <dirent.h>
|
|
#include <sys/types.h>
|
|
#include <sys/ioctl.h>
|
|
-#include <sys/param.h> /* for HZ */
|
|
+#define HZ (sysconf(_SC_CLK_TCK))
|
|
|
|
/*
|
|
* For PAGE_SIZE (which may be itself a call to getpagesize()).
|
|
--- iostat.c
|
|
+++ iostat.c
|
|
@@ -32,7 +32,7 @@
|
|
#include <sys/types.h>
|
|
#include <sys/stat.h>
|
|
#include <sys/utsname.h>
|
|
-#include <sys/param.h> /* for HZ */
|
|
+#define HZ (sysconf(_SC_CLK_TCK))
|
|
|
|
#include "iostat.h"
|
|
#include "common.h"
|
|
--- mpstat.c
|
|
+++ mpstat.c
|
|
@@ -28,7 +28,7 @@
|
|
#include <errno.h>
|
|
#include <ctype.h>
|
|
#include <sys/utsname.h>
|
|
-#include <sys/param.h> /* for HZ */
|
|
+#define HZ (sysconf(_SC_CLK_TCK))
|
|
|
|
#include "mpstat.h"
|
|
#include "common.h"
|
|
--- sa_common.c
|
|
+++ sa_common.c
|
|
@@ -29,7 +29,7 @@
|
|
#include <fcntl.h>
|
|
#include <sys/types.h>
|
|
#include <sys/ioctl.h>
|
|
-#include <sys/param.h> /* for HZ */
|
|
+#define HZ (sysconf(_SC_CLK_TCK))
|
|
|
|
#include "sa.h"
|
|
#include "common.h"
|
|
--- sadf.c
|
|
+++ sadf.c
|
|
@@ -26,7 +26,7 @@
|
|
#include <unistd.h>
|
|
#include <time.h>
|
|
#include <errno.h>
|
|
-#include <sys/param.h> /* for HZ */
|
|
+#define HZ (sysconf(_SC_CLK_TCK))
|
|
|
|
#include "sadf.h"
|
|
#include "sa.h"
|
|
--- sar.c
|
|
+++ sar.c
|
|
@@ -25,7 +25,7 @@
|
|
#include <unistd.h>
|
|
#include <time.h>
|
|
#include <errno.h>
|
|
-#include <sys/param.h> /* for HZ */
|
|
+#define HZ (sysconf(_SC_CLK_TCK))
|
|
|
|
#include "sa.h"
|
|
#include "common.h"
|