diff mbox

[dpdk-dev] version: fix include

Message ID 1426518325-3374-1-git-send-email-thomas.monjalon@6wind.com (mailing list archive)
State Accepted, archived
Headers show

Commit Message

Thomas Monjalon March 16, 2015, 3:05 p.m. UTC
When including rte_version.h without string.h, there is a compilation error:
include/rte_version.h: error: implicit declaration of function ‘strlen’

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
---
 lib/librte_eal/common/include/rte_version.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Thomas Monjalon March 17, 2015, 9:22 p.m. UTC | #1
> When including rte_version.h without string.h, there is a compilation error:
> include/rte_version.h: error: implicit declaration of function ‘strlen’
> 
> Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>

Applied
diff mbox

Patch

diff --git a/lib/librte_eal/common/include/rte_version.h b/lib/librte_eal/common/include/rte_version.h
index 89934dd..15bdec8 100644
--- a/lib/librte_eal/common/include/rte_version.h
+++ b/lib/librte_eal/common/include/rte_version.h
@@ -44,6 +44,7 @@  extern "C" {
 #endif
 
 #include <stdint.h>
+#include <string.h>
 #include <rte_common.h>
 
 /**