From: Hiroshi Shimamoto <h-shimam...@ct.jp.nec.com>

The below commit requires stdio FILE structure.

commit 591a9d7985c1230652d9f7ea1f9221e8c66ec188
Author: Stephen Hemminger <stephen at networkplumber.org>
Date:   Fri May 2 16:42:56 2014 -0700

    add FILE argument to debug functions

Application which includes rte_memory.h without stdio.h will be hit
compilation failure.

/path/to/include/rte_memory.h:146:30: error: unknown type name ?FILE?
 void rte_dump_physmem_layout(FILE *f);

Signed-off-by: Hiroshi Shimamoto <h-shimamoto at ct.jp.nec.com>
Reviewed-by: Hayato Momma <h-momma at ce.jp.nec.com>
---
 lib/librte_eal/common/include/rte_memory.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/librte_eal/common/include/rte_memory.h 
b/lib/librte_eal/common/include/rte_memory.h
index 7f21244..4cf8ea9 100644
--- a/lib/librte_eal/common/include/rte_memory.h
+++ b/lib/librte_eal/common/include/rte_memory.h
@@ -42,6 +42,7 @@

 #include <stdint.h>
 #include <stddef.h>
+#include <stdio.h>

 #ifdef RTE_EXEC_ENV_LINUXAPP
 #include <exec-env/rte_dom0_common.h>
-- 
1.9.1

Reply via email to