Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KRCJR-0000up-UA for mharc-grub-devel@gnu.org; Thu, 07 Aug 2008 16:42:21 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KRCJP-0000s3-Po for grub-devel@gnu.org; Thu, 07 Aug 2008 16:42:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KRCJO-0000qx-Ss for grub-devel@gnu.org; Thu, 07 Aug 2008 16:42:19 -0400 Received: from [199.232.76.173] (port=44536 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRCJO-0000qj-Gc for grub-devel@gnu.org; Thu, 07 Aug 2008 16:42:18 -0400 Received: from norkia.v3.sk ([92.240.234.41]:42350 helo=norkia.kexik.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KRCJO-000637-1g for grub-devel@gnu.org; Thu, 07 Aug 2008 16:42:18 -0400 Received: from mail.netbsd.sk (localhost.localdomain [127.0.0.1]) by norkia.kexik.net (Postfix) with ESMTP id BEDF470001 for ; Thu, 7 Aug 2008 22:42:14 +0200 (CEST) Received: from 89.103.133.237 (SquirrelMail authenticated user lkundrak@v3.sk) by mail.netbsd.sk with HTTP; Thu, 7 Aug 2008 16:42:14 -0400 (EDT) Message-ID: <39131.89.103.133.237.1218141734.squirrel@mail.netbsd.sk> Date: Thu, 7 Aug 2008 16:42:14 -0400 (EDT) From: lkundrak@v3.sk To: grub-devel@gnu.org User-Agent: SquirrelMail/1.4.8-4.0.1.el5.centos.2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 X-Priority: 3 (Normal) Importance: Normal Content-Transfer-Encoding: quoted-printable X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Subject: [PATCH] Do not mess with libc's prototypes X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Aug 2008 20:42:20 -0000 According to POSIX memmove and memcpy can actually be macros or whatever (IIRC). We'd better not play with those in code that uses libc's headers and is to be linked with libc. 2008-08-07 Lubomir Rintel * include/grub/misc.h: Surround memmove and memcpy prototypes wit= h #ifndef GRUB_UTIL Index: include/grub/misc.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- include/grub/misc.h (revision 1791) +++ include/grub/misc.h (working copy) @@ -39,8 +39,10 @@ char *EXPORT_FUNC(grub_strncat) (char *dest, const char *src, int c); /* Prototypes for aliases. */ +#ifndef GRUB_UTIL void *EXPORT_FUNC(memmove) (void *dest, const void *src, grub_size_t n); void *EXPORT_FUNC(memcpy) (void *dest, const void *src, grub_size_t n); +#endif int EXPORT_FUNC(grub_memcmp) (const void *s1, const void *s2, grub_size_= t n); int EXPORT_FUNC(grub_strcmp) (const char *s1, const char *s2);