[dpdk-dev] ip_pipeline: fix build errors on different linux kernels

Message ID 1449659573-3874-1-git-send-email-jasvinder.singh@intel.com (mailing list archive)
State Accepted, archived
Headers

Commit Message

Jasvinder Singh Dec. 9, 2015, 11:12 a.m. UTC
  This patch fixes build errors on linux kernels such as
SuSE 11-SP2/3(64 bits), etc.

Error Log:
	error: implicit declaration of function 'WIFEXITED'
	error: implicit declaration of function 'WEXITSTATUS'

Fixes: ed0b2d020159 ("examples/ip_pipeline: add more ports")

Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
---
 examples/ip_pipeline/config_parse.c | 1 +
 1 file changed, 1 insertion(+)
  

Comments

Thomas Monjalon Dec. 9, 2015, 8:50 p.m. UTC | #1
2015-12-09 11:12, Jasvinder Singh:
> This patch fixes build errors on linux kernels such as
> SuSE 11-SP2/3(64 bits), etc.
> 
> Error Log:
> 	error: implicit declaration of function 'WIFEXITED'
> 	error: implicit declaration of function 'WEXITSTATUS'
> 
> Fixes: ed0b2d020159 ("examples/ip_pipeline: add more ports")
> 
> Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
> Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>

Applied, thanks
  

Patch

diff --git a/examples/ip_pipeline/config_parse.c b/examples/ip_pipeline/config_parse.c
index 6e49763..6aaca11 100644
--- a/examples/ip_pipeline/config_parse.c
+++ b/examples/ip_pipeline/config_parse.c
@@ -40,6 +40,7 @@ 
 #include <string.h>
 #include <libgen.h>
 #include <unistd.h>
+#include <sys/wait.h>
 
 #include <rte_errno.h>
 #include <rte_cfgfile.h>