DPDK patches and discussions
 help / color / mirror / Atom feed
From: Bruce Richardson <bruce.richardson@intel.com>
To: dev@dpdk.org
Subject: [dpdk-dev] [PATCH 1/2] eal: add missing include <stdio.h> to rte_pci.h
Date: Mon, 25 May 2015 13:23:53 +0100	[thread overview]
Message-ID: <1432556634-9498-2-git-send-email-bruce.richardson@intel.com> (raw)
In-Reply-To: <1432556634-9498-1-git-send-email-bruce.richardson@intel.com>

rte_pci.h depends upon stdio.h for the definition of the FILE type. Add
in #include <stdio.h> to the file to satisfy this dependency in cases
where the including C file does not already include stdio.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
---
 lib/librte_eal/common/include/rte_pci.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/librte_eal/common/include/rte_pci.h b/lib/librte_eal/common/include/rte_pci.h
index 223d3cd..a346532 100644
--- a/lib/librte_eal/common/include/rte_pci.h
+++ b/lib/librte_eal/common/include/rte_pci.h
@@ -74,6 +74,7 @@
 extern "C" {
 #endif
 
+#include <stdio.h>
 #include <stdlib.h>
 #include <limits.h>
 #include <errno.h>
-- 
2.1.0

  reply	other threads:[~2015-05-25 12:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-25 12:23 [dpdk-dev] [PATCH 0/2] Add missing includes to headers Bruce Richardson
2015-05-25 12:23 ` Bruce Richardson [this message]
2015-05-28  8:52   ` [dpdk-dev] [PATCH 1/2] eal: add missing include <stdio.h> to rte_pci.h Marc Sune
2015-05-25 12:23 ` [dpdk-dev] [PATCH 2/2] kni: add missing include dependencies Bruce Richardson
2015-05-28  8:54   ` Marc Sune
2015-05-29 17:36 ` [dpdk-dev] [PATCH 0/2] Add missing includes to headers Thomas Monjalon

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=1432556634-9498-2-git-send-email-bruce.richardson@intel.com \
    --to=bruce.richardson@intel.com \
    --cc=dev@dpdk.org \
    /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).