[syslinux:firmware] efi: include <string.h> for memcpy()

syslinux-bot for Matt Fleming matt.fleming at intel.com
Thu Jun 20 06:51:20 PDT 2013

Commit-ID:  74f02afc5fd0372424d34fcafa973c23c03cd03c
Gitweb:     http://www.syslinux.org/commit/74f02afc5fd0372424d34fcafa973c23c03cd03c
Author:     Matt Fleming <matt.fleming at intel.com>
AuthorDate: Wed, 19 Jun 2013 16:39:26 +0100
Committer:  Matt Fleming <matt.fleming at intel.com>
CommitDate: Wed, 19 Jun 2013 16:39:26 +0100

efi: include <string.h> for memcpy()

to fix this warning,

efi/mem.c: In function ‘efi_realloc’:
efi/mem.c:14:2: warning: implicit declaration of function ‘memcpy’ [-Wimplicit-function-declaration]

Signed-off-by: Matt Fleming <matt.fleming at intel.com>

 efi/mem.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/efi/mem.c b/efi/mem.c
index 6203ff2..50e93b0 100644
--- a/efi/mem.c
+++ b/efi/mem.c
@@ -1,4 +1,5 @@
 #include <mem/malloc.h>
+#include <string.h>
 #include "efi.h"
 void *efi_malloc(size_t size, enum heap heap, malloc_tag_t tag)

More information about the Syslinux-commits mailing list