[PATCH] eal: restore some needed header includes
Ferruh Yigit
ferruh.yigit at amd.com
Fri Sep 23 18:39:18 CEST 2022
On 9/23/2022 2:29 PM, Andrew Boyer wrote:
> These are necessary to build when HPET is enabled.
>
> Fixes: 2ff3976e677c ("eal: remove unneeded header includes")
> Cc: sean.morrissey at intel.com
>
> Signed-off-by: Andrew Boyer <Andrew.Boyer at amd.com>
> ---
> lib/eal/linux/eal_timer.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/lib/eal/linux/eal_timer.c b/lib/eal/linux/eal_timer.c
> index 620baf038d..95c8cca992 100644
> --- a/lib/eal/linux/eal_timer.c
> +++ b/lib/eal/linux/eal_timer.c
> @@ -5,6 +5,12 @@
>
> #include <stdio.h>
> #include <stdint.h>
> +#ifdef RTE_LIBEAL_USE_HPET
> +#include <fcntl.h>
> +#include <inttypes.h>
> +#include <sys/mman.h>
> +#include <unistd.h>
> +#endif
>
> #include <rte_common.h>
> #include <rte_cycles.h>
Acked-by: Ferruh Yigit <ferruh.yigit at amd.com>
More information about the dev
mailing list