Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1FqK6b-0002W9-3Z for mharc-grub-devel@gnu.org; Tue, 13 Jun 2006 21:23:37 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FqK6Z-0002Um-Og for grub-devel@gnu.org; Tue, 13 Jun 2006 21:23:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FqK6V-0002UZ-8R for grub-devel@gnu.org; Tue, 13 Jun 2006 21:23:34 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FqK6V-0002UW-3g for grub-devel@gnu.org; Tue, 13 Jun 2006 21:23:31 -0400 Received: from [207.152.70.127] (helo=baz.foobar-qux.org) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FqKFY-0004H2-TM for grub-devel@gnu.org; Tue, 13 Jun 2006 21:32:53 -0400 Received: from baz.foobar-qux.org (localhost.foobar-qux.org [127.0.0.1]) by baz.foobar-qux.org (8.13.3/8.13.3) with ESMTP id k5E1NRal058761 for ; Tue, 13 Jun 2006 20:23:28 -0500 (CDT) (envelope-from hde@foobar-qux.org) Received: (from hde@localhost) by baz.foobar-qux.org (8.13.3/8.13.3/Submit) id k5E1NQ6Q058758; Tue, 13 Jun 2006 20:23:26 -0500 (CDT) (envelope-from hde@foobar-qux.org) X-Authentication-Warning: baz.foobar-qux.org: hde set sender to hde@foobar-qux.org using -f Sender: hde@baz.foobar-qux.org Mail-Copies-To: hde@gnu.org To: The development of GRUB 2 References: <868xo2tmpl.fsf@baz.foobar-qux.org> <200606132001.34248.okuji@enbug.org> <86r71sraez.fsf@baz.foobar-qux.org> <200606140053.40705.okuji@enbug.org> From: hde@foobar-qux.org (Harley D. Eades III) Date: 13 Jun 2006 20:23:26 -0500 In-Reply-To: <200606140053.40705.okuji@enbug.org> Message-ID: <86mzcgr0mp.fsf@baz.foobar-qux.org> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: Wed, 14 Jun 2006 01:23:36 -0000 "Yoshinori K. Okuji" writes: > 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? Will do, but, I thought posix_memalign is not going to be active until the next release? This explains my concern (See Release:) : http://www.freebsd.org/cgi/query-pr.cgi?pr=85090 > BTW, I am afraid that there are some more dependencies on glibc, such as argp. > How do you deal with those? FreeBSD packages libargp, I add it to LDFLAGS. :) Cheers Harley