From: Rostislav Skudnov Date: Mon, 22 Jan 2018 15:57:15 +0000 (+0000) Subject: src/metaperf: Include linux/param.h explicitly for HZ macro X-Git-Tag: v2022.05.01~1674 X-Git-Url: http://git.apps.os.sepia.ceph.com/?p=xfstests-dev.git;a=commitdiff_plain;h=dae4fcad54be5558c7ca93a9e88ce2bf609339ca src/metaperf: Include linux/param.h explicitly for HZ macro 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 Reviewed-by: Eryu Guan Signed-off-by: Eryu Guan --- diff --git a/src/metaperf.c b/src/metaperf.c index d06b5891..5f5a971a 100644 --- a/src/metaperf.c +++ b/src/metaperf.c @@ -25,6 +25,7 @@ #include #include #include +#include typedef void *(*fpi_t)(void); typedef void (*fpt_t)(int, void *);