DPDK patches and discussions
 help / color / mirror / Atom feed
From: Andrew Boyer <Andrew.Boyer@amd.com>
To: <dev@dpdk.org>
Cc: <Ferruh.Yigit@amd.com>, Andrew Boyer <Andrew.Boyer@amd.com>,
	<sean.morrissey@intel.com>
Subject: [PATCH] eal: restore some needed header includes
Date: Fri, 23 Sep 2022 07:12:10 -0700	[thread overview]
Message-ID: <20220923141210.60727-1-Andrew.Boyer@amd.com> (raw)

These are necessary to build when HPET is enabled.

Fixes: 2ff3976e677c ("eal: remove unneeded header includes")
Cc: sean.morrissey@intel.com

Signed-off-by: Andrew Boyer <Andrew.Boyer@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>
-- 
2.17.1


             reply	other threads:[~2022-09-23 14:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-23 14:12 Andrew Boyer [this message]
2022-09-23 16:40 ` Ferruh Yigit
2022-09-28 11:21   ` Thomas Monjalon
     [not found] <20220923132911.26996-1-Andrew.Boyer@amd.com>
2022-09-23 16:39 ` Ferruh Yigit

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220923141210.60727-1-Andrew.Boyer@amd.com \
    --to=andrew.boyer@amd.com \
    --cc=Ferruh.Yigit@amd.com \
    --cc=dev@dpdk.org \
    --cc=sean.morrissey@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).