[PATCH v2 4/8] metaperf: Include linux/param.h explicitly for HZ macro

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]



Glibc includes linux/param.h when we include sys/param.h, whereas musl
libc does not do that. HZ is a Linux-specific macro, therefore include
the header file that defines it explicitly.

Signed-off-by: Rostislav Skudnov <rostislav@xxxxxxxxxx>
---
 src/metaperf.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/metaperf.c b/src/metaperf.c
index d06b589..5f5a971 100644
--- a/src/metaperf.c
+++ b/src/metaperf.c
@@ -25,6 +25,7 @@
 #include <string.h>
 #include <unistd.h>
 #include <dirent.h>
+#include <linux/param.h>
 
 typedef	void	*(*fpi_t)(void);
 typedef	void	(*fpt_t)(int, void *);
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe fstests" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux