Re: [PATCH] cyclictest: remove inclusion of unnecessary headers

John Kacur
2023-06-01T14:47:26Z

On Tue, 30 May 2023, Marcelo Tosatti wrote:

>
> The following three headers seem to be unnecessary,
> and do not exist on FreeBSD.
>
> Remove their inclusion.
>
> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
>
> diff --git a/src/cyclictest/cyclictest.c b/src/cyclictest/cyclictest.c
> index 82759d1..7b0f80f 100644
> --- a/src/cyclictest/cyclictest.c
> +++ b/src/cyclictest/cyclictest.c
> @@ -22,11 +22,8 @@
> #include <time.h>
> #include <errno.h>
> #include <limits.h>
> -#include <linux/unistd.h>
>
> -#include <sys/prctl.h>
> #include <sys/stat.h>
> -#include <sys/sysinfo.h>
> #include <sys/types.h>
> #include <sys/time.h>
> #include <sys/resource.h>
>
>

Signed-off-by: John Kacur <jkacur@redhat.com>