[dpdk-dev] version: fix include
Commit Message
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
> 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
@@ -44,6 +44,7 @@ extern "C" {
#endif
#include <stdint.h>
+#include <string.h>
#include <rte_common.h>
/**