eal: fix missing include
diff mbox series

Message ID 20200621074927.EE0261C001@dpdk.org
State Not Applicable
Delegated to: David Marchand
Headers show
Series
  • eal: fix missing include
Related show

Checks

Context Check Description
ci/iol-testing success Testing PASS
ci/iol-mellanox-Performance success Performance Testing PASS
ci/iol-nxp-Performance success Performance Testing PASS
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-broadcom-Performance success Performance Testing PASS
ci/travis-robot success Travis build: passed
ci/Intel-compilation fail Compilation issues
ci/checkpatch success coding style OK

Commit Message

Yunjian Wang June 21, 2020, 7:49 a.m. UTC
This patch adds the missing include and fixes the build error:
/dpdk/build/include/rte_uuid.h: In function 'rte_uuid_copy':
/dpdk/build/include/rte_uuid.h:58:2: error: implicit declaration
of function 'memcpy' [-Werror=implicit-function-declaration]
  memcpy(dst, src, sizeof(rte_uuid_t));
  ^~~~~~

Fixes: 6bc67c497a51 ("eal: add uuid API")
Cc: stable@dpdk.org

Signed-off-by: Yunjian Wang <yunjian.wang@foxmail.com>
---
 lib/librte_eal/include/rte_uuid.h | 1 +
 1 file changed, 1 insertion(+)

Patch
diff mbox series

diff --git a/lib/librte_eal/include/rte_uuid.h b/lib/librte_eal/include/rte_uuid.h
index 044afbdfa..dc86eb292 100644
--- a/lib/librte_eal/include/rte_uuid.h
+++ b/lib/librte_eal/include/rte_uuid.h
@@ -15,6 +15,7 @@  extern "C" {
 #endif
 
 #include <stdbool.h>
+#include <string.h>
 
 /**
  * Struct describing a Universal Unique Identifier