version: fix include
PATCH 1/1 version: fix include
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 <[email protected]>
--- lib/librte_eal/common/include/rte_version.h | 1 + 1 file changed, 1 insertion(+)
lib/librte_eal/common/include/rte_version.h +1 -0
@@ -44,6 +44,7 @@ extern "C" {#endif #include <stdint.h> +#include <string.h> #include <rte_common.h> /**
Signature · 1 line
2.2.2
A message that is not in the archive (sent off-list or not yet received): 1426518325-3374-1-git-send-email-thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org
Thomas Monjalon
AppliedQuoted 4 lines
When including
rte_version.hwithoutstring.h, there is a compilation error:include/rte_version.h: error: implicit declaration of function ‘strlen’Signed-off-by Thomas Monjalon <[email protected]>
Applied