From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1FqHlc-00039d-UM for mharc-grub-devel@gnu.org; Tue, 13 Jun 2006 18:53:48 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FqHlb-00038F-QU for grub-devel@gnu.org; Tue, 13 Jun 2006 18:53:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FqHla-00035j-26 for grub-devel@gnu.org; Tue, 13 Jun 2006 18:53:47 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FqHlZ-00035a-Sq for grub-devel@gnu.org; Tue, 13 Jun 2006 18:53:45 -0400 Received: from [212.85.152.101] (helo=kotoba.storever.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FqHuc-000258-CU for grub-devel@gnu.org; Tue, 13 Jun 2006 19:03:06 -0400 Received: from kotoba.oasis.nexedi.com (kotoba.oasis.nexedi.com [212.85.152.101]) by kotoba.storever.com (Postfix) with ESMTP id F3C2D3CD149EE for ; Wed, 14 Jun 2006 02:34:07 +0200 (CEST) Received: from [??1] (localhost [127.0.0.1]) by kotoba.storever.com (Postfix) with ESMTP id AD8113CD149EC for ; Wed, 14 Jun 2006 02:34:05 +0200 (CEST) From: "Yoshinori K. Okuji" Organization: enbug.org To: The development of GRUB 2 Date: Wed, 14 Jun 2006 00:53:40 +0200 User-Agent: KMail/1.8.2 References: <868xo2tmpl.fsf@baz.foobar-qux.org> <200606132001.34248.okuji@enbug.org> <86r71sraez.fsf@baz.foobar-qux.org> In-Reply-To: <86r71sraez.fsf@baz.foobar-qux.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606140053.40705.okuji@enbug.org> X-Bogosity: No, tests=bogofilter, spamicity=0.070797, version=0.17.2 Subject: Re: Patch for successful compilation on FreeBSD Release-6.1 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: Tue, 13 Jun 2006 22:53:48 -0000 On Tuesday 13 June 2006 23:52, Harley D. Eades III wrote: > off_t is defined here on FreeBSD. I understand. > I am not adding the include. All I added was the #if statement so > this is not included on FreeBSD. So you are correct about the header > file not being used on FreeBSD, because it's not. :) IIRC, GNU/Linux > does define memalign in malloc.h though, so this could be the reason > it has been included already. You are right. I've checked in my own fix for this problem. Since recent FreeBSD supports posix_memalign, I think mine is a bit better. Can you confirm that this works on FreeBSD? BTW, I am afraid that there are some more dependencies on glibc, such as argp. How do you deal with those? Thanks, Okuji