src/metaperf: Include linux/param.h explicitly for HZ macro
authorRostislav Skudnov <rostislav@tuxera.com>
Mon, 22 Jan 2018 15:57:15 +0000 (15:57 +0000)
committerEryu Guan <eguan@redhat.com>
Sun, 28 Jan 2018 11:09:20 +0000 (19:09 +0800)
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@tuxera.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
src/metaperf.c

index d06b58911473de2cef837dded0e278dbac811b3d..5f5a971ab7f63805f110a09e6823677ae9bf2e19 100644 (file)
@@ -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 *);