Skip to contentSkip to conversation

eal: fix missing include

PATCH David Marchand 1 participant 1 message Jul 9, 2020 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 29 lines · Yunjian Wang

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")
---
 lib/librte_eal/include/rte_uuid.h | 1 +
 1 file changed, 1 insertion(+)
lib/librte_eal/include/rte_uuid.h +1 -1
index 044afbdfa..dc86eb292 100644
@@ -15,6 +15,7 @@ extern "C" {
 #endif
 
 #include <stdbool.h>
+#include <string.h>
 
 /**
  * Struct describing a Universal Unique Identifier
--
Quoted 2 lines

2.18.1

A fix for this issue has been submitted before and made it to the main branch this week.
https://git.dpdk.org/dpdk/commit/?id=edca6d883eb0137bc3caf7f93651a67360ebdf96

Thanks.

Signature · 1 line
David Marchand