Skip to contentSkip to conversation

eal: restore some needed header includes

PATCH Ferruh Yigit 1 participant 1 message Sep 23, 2022 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Ferruh Yigit

author Acked-by
#1 lore raw
Quoted 17 lines · Andrew Boyer

These are necessary to build when HPET is enabled.

Fixes 2ff3976e677c ("eal: remove unneeded header includes")
---
  lib/eal/linux/eal_timer.c | 6 ++++++
  1 file changed, 6 insertions(+)
lib/eal/linux/eal_timer.c +0 -0
index 620baf038d..95c8cca992 100644
@@ -5,6 +5,12 @@
 
  #include <stdio.h>

lib/eal/linux/eal_timer.c line 16

Quoted 10 lines
lib/eal/linux/eal_timer.c +6 -0
  #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>