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

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

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

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

and fix these warnings,

efi/adv.c: In function ‘cleanup_adv’:
efi/adv.c:48:5: warning: implicit declaration of function ‘memcpy’ [-Wimplicit-function-declaration]
efi/adv.c: In function ‘syslinux_reset_adv’:
efi/adv.c:54:5: warning: implicit declaration of function ‘memset’ [-Wimplicit-function-declaration]

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

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

diff --git a/efi/adv.c b/efi/adv.c
index 3dec3cc..b390fd8 100644
--- a/efi/adv.c
+++ b/efi/adv.c
@@ -24,6 +24,7 @@
 #define  _GNU_SOURCE
+#include <string.h>
 #include "adv.h"
 #define IS_SYSLINUX	/* remove this: test build only */

More information about the Syslinux-commits mailing list