]> git.droids-corp.org - dpdk.git/commitdiff
cmdline: fix missing includes
authorPawel Wodkowski <pawelx.wodkowski@intel.com>
Wed, 13 May 2015 12:00:00 +0000 (14:00 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 18 May 2015 11:10:48 +0000 (13:10 +0200)
When including only some of library headers some definitions
are missing and build fails.

Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
lib/librte_cmdline/cmdline.h
lib/librte_cmdline/cmdline_parse_ipaddr.h
lib/librte_cmdline/cmdline_rdline.h
lib/librte_cmdline/cmdline_vt100.h

index 06ae08668622073e36d2aa13cd9ebfee421c32d8..9085ff6955669b0cc129a0b067a26285f05ff2d9 100644 (file)
@@ -61,6 +61,9 @@
 #ifndef _CMDLINE_H_
 #define _CMDLINE_H_
 
+#include <termios.h>
+#include <cmdline_rdline.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
index 296c374a15695b9f3d0fe6b6271ea345df0e246d..46c6e1b86efeb6dc91643d20e6b199ab87802303 100644 (file)
@@ -61,6 +61,8 @@
 #ifndef _PARSE_IPADDR_H_
 #define _PARSE_IPADDR_H_
 
+#include <netinet/in.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif
index ae6e24e8d2bfebbc82973ecc0cf96ba48428167c..b9aad9bd28cd645fe2fc646995bb82123d94b22b 100644 (file)
@@ -84,6 +84,7 @@
  *   instance.
  */
 
+#include <stdio.h>
 #include <cmdline_cirbuf.h>
 #include <cmdline_vt100.h>
 
index b9840f6c291a69c7900eff169f7ad66050489039..963add8df9bf5b1acf3ce16c2196b103bab36172 100644 (file)
@@ -61,6 +61,8 @@
 #ifndef _CMDLINE_VT100_H_
 #define _CMDLINE_VT100_H_
 
+#include <stdint.h>
+
 #ifdef __cplusplus
 extern "C" {
 #endif