version: fix include
authorThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 13 Mar 2015 17:25:44 +0000 (18:25 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 17 Mar 2015 22:01:31 +0000 (23:01 +0100)
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

index 89934dd..15bdec8 100644 (file)
@@ -44,6 +44,7 @@ extern "C" {
 #endif
 
 #include <stdint.h>
+#include <string.h>
 #include <rte_common.h>
 
 /**