DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Pawel Wodkowski" <pwodkowx@stargo>
To: dev@dpdk.org
Subject: [dpdk-dev] [PATCH 1/2] cmdline: fix missing include files
Date: Tue, 12 May 2015 13:10:18 +0200	[thread overview]
Message-ID: <1431429019-21130-2-git-send-email-pawelx.wodkowski@intel.com> (raw)
In-Reply-To: <1431429019-21130-1-git-send-email-pawelx.wodkowski@intel.com>

When including only some of library headers some definitions
are missing and build fails.

Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
---
 lib/librte_cmdline/cmdline.h        | 3 +++
 lib/librte_cmdline/cmdline_rdline.h | 1 +
 lib/librte_cmdline/cmdline_vt100.h  | 2 ++
 3 files changed, 6 insertions(+)

diff --git a/lib/librte_cmdline/cmdline.h b/lib/librte_cmdline/cmdline.h
index 06ae086..9085ff6 100644
--- a/lib/librte_cmdline/cmdline.h
+++ b/lib/librte_cmdline/cmdline.h
@@ -61,6 +61,9 @@
 #ifndef _CMDLINE_H_
 #define _CMDLINE_H_
 
+#include <termios.h>
+#include <cmdline_rdline.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
diff --git a/lib/librte_cmdline/cmdline_rdline.h b/lib/librte_cmdline/cmdline_rdline.h
index ae6e24e..b9aad9b 100644
--- a/lib/librte_cmdline/cmdline_rdline.h
+++ b/lib/librte_cmdline/cmdline_rdline.h
@@ -84,6 +84,7 @@
  *   instance.
  */
 
+#include <stdio.h>
 #include <cmdline_cirbuf.h>
 #include <cmdline_vt100.h>
 
diff --git a/lib/librte_cmdline/cmdline_vt100.h b/lib/librte_cmdline/cmdline_vt100.h
index b9840f6..963add8 100644
--- a/lib/librte_cmdline/cmdline_vt100.h
+++ b/lib/librte_cmdline/cmdline_vt100.h
@@ -61,6 +61,8 @@
 #ifndef _CMDLINE_VT100_H_
 #define _CMDLINE_VT100_H_
 
+#include <stdint.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
-- 
1.9.1

  reply	other threads:[~2015-05-12 11:16 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-12 11:10 [dpdk-dev] [PATCH 0/2] cmdline: add polling mode for command line Pawel Wodkowski
2015-05-12 11:10 ` Pawel Wodkowski [this message]
2015-05-12 11:10 ` [dpdk-dev] [PATCH 2/2] " Pawel Wodkowski
2015-05-12 14:36   ` Olivier MATZ
2015-05-12 16:14     ` Pawel Wodkowski
2015-05-12 11:36 ` [dpdk-dev] [PATCH 0/2] " Dumitrescu, Cristian
2015-05-12 15:32 ` Wodkowski, PawelX
2015-05-13 11:59 ` [dpdk-dev] [PATCH v2 " Pawel Wodkowski
2015-05-13 12:00   ` [dpdk-dev] [PATCH v2 1/2] cmdline: fix missing include files Pawel Wodkowski
2015-05-13 12:00   ` [dpdk-dev] [PATCH v2 2/2] cmdline: add polling mode for command line Pawel Wodkowski
2015-05-13 12:44   ` [dpdk-dev] [PATCH v2 0/2] " Dumitrescu, Cristian
2015-05-13 13:20   ` Olivier MATZ
2015-05-18 13:18     ` 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=1431429019-21130-2-git-send-email-pawelx.wodkowski@intel.com \
    --to=pwodkowx@stargo \
    --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).